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

README.md

15 lines916 Bytes

1# TanStack Vue Query Nuxt 4 Integration
2​
3Checks that `@tanstack/vue-query` and `@tanstack/vue-query-devtools` build and type-check with Nuxt 4.
4​
5## What it checks
6​
7- `app/plugins/vue-query.ts` installs `VueQueryPlugin` with a `QueryClient`, stores `dehydrate(queryClient)` in `useState` on the server's `app:rendered` hook, and calls `hydrate` on the client's `app:created` hook.
8- `app/app.vue` reads a query with `useQuery`, renders its pending, error, and success states, and renders `VueQueryDevtools`.
9- `tsconfig.json` references the generated `.nuxt/tsconfig.app.json`, `.nuxt/tsconfig.server.json`, `.nuxt/tsconfig.shared.json`, and `.nuxt/tsconfig.node.json`.
10- CI runs the `build` (`nuxt build`) and `test:types` (`nuxt typecheck`) scripts.
11​
12To run it from the repository root:
13​
14- `pnpm nx run @tanstack/query-integration-vue-nuxt-4:build`
15- `pnpm nx run @tanstack/query-integration-vue-nuxt-4:test:types`