What it does
A rules file for Cursor that guides the AI on TanStack Query v5 in React and TypeScript. It treats the library as a server-state tool, asks for stable query keys and the queryOptions helper, keeps reads and writes separate, and includes a setup example.
Use cases
- 01Write a query with a reusable queryOptions definition
- 02Organize query keys with a key factory
- 03Add a mutation that refreshes related queries