Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

TanStack Query v5 best practices v1.0.0

Use this resource to write or optimize TanStack Query v5 queries and mutations

New

  • 378 downloads
  • 161 likes
  • 248 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install tanstack-query-caching-practices

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies 40 rules ranked by impact: key structure, cache configuration, precise invalidation, prefetching and error handling. You get fewer unnecessary requests and fresh data at the right time.

Mostly picked by

Updated November 2, 2026

Card for the “TanStack Query v5 best practices” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rules by category, from cache to rendering
  • references/cache-staletime-gctime.md: staleTime and gcTime; references/error-conditional-retry.md: conditional retries

Good fit for

  • Your app refetches the same queries on every navigation
  • A mutation does not refresh the list on screen

Not for

    Tags

    • tanstack query
    • cache
    • react
    • queries

    About

    You say

    “Fix the cache for this product list: it must update after an addition.”

    Card for the “TanStack Query v5 best practices” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or optimize TanStack Query v5 queries and mutations
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md8 KB
    • LICENSE1.1 KB
    • metadata.json0.8 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md1.9 KB
    • references/_sections.md1.8 KB
    • references/cache-enabled-option.md2 KB
    • references/cache-global-defaults.md2.1 KB
    • references/cache-invalidation-precision.md2.2 KB
    • references/cache-placeholder-vs-initial.md2.1 KB
    • references/cache-refetch-triggers.md2.1 KB
    • references/cache-staletime-gctime.md2.3 KB
    • references/error-conditional-retry.md2.2 KB
    • references/error-display-patterns.md2.3 KB
    • references/error-global-handler.md2.3 KB
    • references/error-retry-config.md1.9 KB
    • references/error-throw-on-error.md2.2 KB
    • references/infinite-flatten-pages.md2.7 KB
    • references/infinite-loading-states.md2.5 KB
    • references/infinite-max-pages.md2.3 KB
    • references/infinite-refetch-behavior.md2 KB
    • references/mutation-avoid-parallel.md2 KB
    • references/mutation-cancel-queries.md2.1 KB
    • references/mutation-invalidate-onsettled.md2 KB
    • references/mutation-optimistic-updates.md2.3 KB
    • references/mutation-setquerydata.md2 KB
    • references/prefetch-avoid-waterfalls.md2.6 KB
    • references/prefetch-flatten-api.md2.1 KB
    • references/prefetch-in-queryfn.md2 KB
    • references/prefetch-on-hover.md2.1 KB
    • references/prefetch-server-components.md2.3 KB
    • references/render-notify-props.md2.2 KB
    • references/render-select-derived.md2.3 KB
    • references/render-select-memoize.md2 KB
    • references/render-structural-sharing.md2.3 KB
    • references/render-tracked-props.md2 KB
    • references/suspense-boundaries-placement.md2.3 KB
    • references/suspense-error-boundaries.md2.3 KB
    • references/suspense-parallel-queries.md2.1 KB
    • references/suspense-use-suspense-hooks.md2.1 KB
    • references/tquery-always-arrays.md1.4 KB
    • references/tquery-colocate-keys.md1.9 KB
    • references/tquery-hierarchical-keys.md1.9 KB
    • references/tquery-key-factories.md1.8 KB
    • references/tquery-options-pattern.md2.1 KB
    • references/tquery-serializable-objects.md1.8 KB
    • SKILL.md5.3 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.curated/tanstack-query
    Licence
    MIT

    Notice

    « tanstack-query » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.