integrations/react/next-16
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack React Query Next.js 16 Integration#
Checks that @tanstack/react-query and @tanstack/react-query-devtools build with Next.js 16 and React 19 using the App Router.
What it checks#
app/make-query-client.tscreates aQueryClientthat serializesTemporal.PlainDatewithtuplesonthroughserializeDataanddeserializeData, dehydrates pending queries, and setsshouldRedactErrorsto returnfalse.app/page.tsxstartsqueryClient.queryon the server without awaiting it, passesdehydrate(queryClient)toHydrationBoundary, and rendersapp/client-component.tsx, which reads the same query withuseQuery.app/_action.tsis a server action that callsrevalidatePath, andapp/count/route.tsis a route handler that both query functions fetch.app/providers.tsxusesenvironmentManager.isServer()to create a new client on the server and reuse one in the browser.next.config.tssetstypescript.ignoreBuildErrors, so the build does not type-check.- CI runs the
buildscript (next build).
To run it from the repository root:
pnpm nx run @tanstack/query-integration-react-next-16:build