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.

Data fetching and caching with TanStack Query v5 v1.0.0

Use this resource to manage server data and caching with TanStack Query v5

New

  • 571 downloads
  • 138 likes
  • 136 saves

Free

Install with the CLI

In a terminal, from the folder you want:

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

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 structures query keys, sets staleTime and gcTime, handles mutations and precise invalidation, then deals with errors and retries. It also avoids request waterfalls.

Mostly picked by

Updated November 2, 2026

Card for the “Data fetching and caching with TanStack Query v5” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: rule categories by priority and quick reference
  • references/: keys, caching, invalidation, errors, retries and infinite queries

Good fit for

  • Your data keeps refetching or stays stale
  • A mutation does not update the list on screen

Not for

    Tags

    • tanstack query
    • cache
    • mutations
    • data

    About

    You say

    “My orders table refetches on every click: set staleTime and the query keys for the cache.”

    Card for the “Data fetching and caching with TanStack Query v5” skill

    Skill published by pymodel 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 manage server data and caching with TanStack Query v5
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/cache-enabled-option.md2.5 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.6 KB
    • references/mutation-cancel-queries.md2.1 KB
    • references/mutation-invalidate-onsettled.md2.6 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.2 KB
    • references/prefetch-in-queryfn.md3 KB
    • references/prefetch-infinite-query.md2.8 KB
    • references/prefetch-on-hover.md2.5 KB
    • references/prefetch-server-components.md2.4 KB
    • references/render-notify-props.md2.1 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.md1.9 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.2 KB
    • references/tquery-serializable-objects.md1.8 KB
    • SKILL.md4.9 KB

    Origin and licence

    Listed unmodified

    Author
    pymodel
    Source
    github.com/pymodel/react-frontend-skills/tree/b210600fdf49441ee1efeca2cbdc05599ec03019/skills/tanstack-query
    Licence
    MIT

    Notice

    « tanstack-query » (pymodel, 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.