What it does
A Cursor rules file for combining Next.js App Router with TanStack Query v5. Server components fetch initial data directly, while TanStack Query handles interactive, real-time or user-triggered data in client components. It includes provider setup and hydrating the query cache from the server.
Use cases
- 01Set up a query provider with hydration
- 02Prefetch page data on the server
- 03Handle mutations and polling in client components