What it does
A second, more compact Cursor rules file for Next.js App Router with TanStack Query v5. It covers the split between server and client components, a provider setup, and the server prefetch pattern with HydrationBoundary so client components read from an already filled cache.
Use cases
- 01Prefetch a list on the server and hydrate it
- 02Read prefetched data with useQuery in a client component
- 03Add optimistic updates to a mutation