Skip to main content
Back to registry

tanstack-query-best-practices

deckardger/tanstack-agent-skills

Comprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization.

Installs1
Install command
npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-query-best-practices
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Comprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization. Each rule file in the rules/ directory contains: See individual rule files in rules/ directory for detailed guidance and code examples. - Creating new data fetching logic - Setting up query configurations - Implementing mutations and optimistic updates - Configuring caching strategies - Integrating with SSR/SSG - Refactoring existing data fetching code - qk-array-structure — Always use arrays for query keys - qk-include-dependencies — Include all variables the query depends on - qk-hierarchical-organization — Organize keys hierarchically (entity → id → filters) - qk-factory-pattern — Use query key factories for complex applications - qk-serializable — Ensure all key parts are JSON-serializable - cache-stale-time — Set appropriate staleTime based on data volatility - cache-gc-time — Configure gcTime for inactive query retention - cache-defaults — Set sensible defaults at QueryClient level - cache-invalidation — Use targeted invalidation over broad patterns - cache-placeholder-vs-initial — Understand placeholder vs initial data differences - mut-invalidate-queries — Always invalidate related queries after mutations - mut-optimistic-updates — Implement optimistic updates for responsive UI -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does tanstack-query-best-practices do?

Comprehensive guidelines for implementing TanStack Query (React Query) patterns in React applications. These rules optimize data fetching, caching, mutations, and server state synchronization.

Is tanstack-query-best-practices good?

tanstack-query-best-practices does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does tanstack-query-best-practices work with?

tanstack-query-best-practices currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to tanstack-query-best-practices?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install tanstack-query-best-practices?

npx skills add https://github.com/deckardger/tanstack-agent-skills --skill tanstack-query-best-practices

Related skills

More from deckardger/tanstack-agent-skills

Related skills

Alternatives in Software Engineering