FreeRules, agents & hooks
TypeScript, React and Node.js rules
- 174174 downloads
- 225225 likes
- 237237 saves
- Cursor
Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans
Use this resource to write TanStack Query v5 queries and mutations without mixing reads and writes
New
Free
In a terminal, from the folder you want:
npx --yes palatekit@latest install tanstack-query-core-patterns-ruleFirst time: connect the CLI with
npx --yes palatekit@latest loginCursor applies these guidelines to React Query hooks: TanStack Query manages server state rather than client state, each query has a serializable key, reads go through queryOptions and writes through useMutation. The text also shows prefetching with ensureQueryData in a loader and a QueryClient configuration.
Mostly picked by
Updated November 2, 2026
You say
“Prefetch this article's data in the route loader.”

Rule published by PatrickJS under the CC0-1.0 license, delivered in its original version.
Listed unmodified
« tanstack-query » (PatrickJS, CC0-1.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.
–
No ratings yet
Loading reviews…