Skip to content
Source
Sign inSign up
TanStack/query

chore(integrations): type-check the Next.js integrations, order 'test:types' after 'build', and pin 'typescript' in 'angular/types-22' #12624

Opensukvvon(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/12624/headopened View on GitHub

Showing 13 changed files with 26 additions and 6 deletions (loading 9).

x
0 of 13 viewed, 13 left
1 addition and 1 deletionintegrations/angular/types-22/package.jsonModified
View file
@@ -13,7 +13,7 @@
"@tanstack/angular-query": "workspace:*",
"@tanstack/angular-query-devtools": "workspace:*",
"@tanstack/angular-query-persist-client": "workspace:*",
- "typescript": "catalog:"
+ "typescript": "6.0.3"
},
"nx": {
"targets": {
4 additions and 3 deletionsintegrations/react/next-14/README.mdModified
View file
@@ -1,14 +1,15 @@
# TanStack React Query Next.js 14 Integration
​
-Checks that `@tanstack/react-query` and `@tanstack/react-query-devtools` build with Next.js 14 and React 18 using the App Router.
+Checks that `@tanstack/react-query` and `@tanstack/react-query-devtools` build and type-check with Next.js 14 and React 18 using the App Router.
​
## What it checks
​
- `app/providers.tsx` creates a `QueryClient` with `React.useState` and renders `QueryClientProvider` with `ReactQueryDevtools` in a client component.
- `app/page.tsx` is a server component that builds options with `queryOptions` and renders `app/client-component.tsx`, which reads a query with `useQuery`.
-- `next.config.js` sets `eslint.ignoreDuringBuilds` and `typescript.ignoreBuildErrors`, so the build does not type-check.
-- CI runs the `build` script (`next build`).
+- `next.config.js` sets `eslint.ignoreDuringBuilds` and `typescript.ignoreBuildErrors`, so `next build` skips type checking. The `test:types` script type-checks instead with `tsc --noEmit`.
+- CI runs the `build` script (`next build`) and the `test:types` script.
​
To run it from the repository root:
​
- `pnpm nx run @tanstack/query-integration-react-next-14:build`