Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

14 lines773 Bytes

1# TanStack React Query Next.js 14 Integration
2​
3Checks that `@tanstack/react-query` and `@tanstack/react-query-devtools` build with Next.js 14 and React 18 using the App Router.
4​
5## What it checks
6​
7- `app/providers.tsx` creates a `QueryClient` with `React.useState` and renders `QueryClientProvider` with `ReactQueryDevtools` in a client component.
8- `app/page.tsx` is a server component that builds options with `queryOptions` and renders `app/client-component.tsx`, which reads a query with `useQuery`.
9- `next.config.js` sets `eslint.ignoreDuringBuilds` and `typescript.ignoreBuildErrors`, so the build does not type-check.
10- CI runs the `build` script (`next build`).
11​
12To run it from the repository root:
13​
14- `pnpm nx run @tanstack/query-integration-react-next-14:build`