LogoClawIndex
CasesSkillsAbout
LogoClawIndex

data-fetching - Data Fetching with TanStack Query

Implement data fetching patterns using TanStack Query with loading states and error handling

Tags

Updated: 2026-03-23
data fetchingTanStack Querystate managementAPI integrationerror handlingpaginationReact

Capabilities

fetch user dataupdate user datafetch paginated itemsinvalidate queries

Typical Inputs

API endpointuser IDpage cursor

Typical Outputs

fetched dataloading stateerror message

What this skill does

  • fetch user data
  • update user data
  • fetch paginated items
  • invalidate queries
  • prefetch data on hover
  • display loading state
  • handle errors
  • manage dependent queries
  • perform optimistic updates

Inputs

  • API endpoint
  • user ID
  • page cursor
  • query filters
  • mutation data

Outputs

  • fetched data
  • loading state
  • error message
  • updated cache
  • paginated items

Requirements

  • TanStack Query
  • React
  • TypeScript
  • API access

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.