
Description
Guidelines for using React Query, now called TanStack Query, to fetch, cache and synchronize server data in React applications. The skill tells an agent to use React Query for all data fetching and caching instead of storing server data in useState. Its built-in state management handles caching, background updates and stale data, which helps avoid excessive API calls. Client-side global state stays in React Context and useReducer, while server state goes through React Query. The guidance also asks that loading and error states be handled properly for every query. It is written for React and TypeScript projects and covers how to organize the code around data fetching. Use it when you build or review a React app that talks to an API and you want data-fetching code that follows one consistent set of conventions. It is a set of coding guidelines rather than a library, so it applies to any React project that adopts React Query.…
Highlights
- Use React Query for server data and caching
- Keep client global state in Context and useReducer
- Handle loading and error states on every query
- Avoid excessive API calls through caching
Ratings & Reviews
No ratings yet
Be the first to rate react-query.
People also visit
react-query FAQ
What does this skill do?
It gives an agent guidelines for fetching, caching and syncing server state in React with React Query, now called TanStack Query.
Which state goes where?
Server data goes in React Query. Client-side global state goes in React Context and useReducer, not in React Query.
Who is it for?
React and TypeScript developers who want an agent to write data-fetching code that follows these conventions.
How do I install it?
Run: npx skills add https://github.com/mindrally/skills --skill react-query
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best react-query alternatives?
Popular alternatives to react-query include tanstack-query-best-practices, tanstack-query and tanstack-query. See all react-query alternatives
















