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

README.md

15 lines770 Bytes

1# TanStack Svelte Query Vite Integration
2​
3Checks that `@tanstack/svelte-query` and `@tanstack/svelte-query-devtools` build and type-check with Vite and Svelte 5.
4​
5## What it checks
6​
7- `src/main.ts` mounts `src/App.svelte` with `mount`, and `src/App.svelte` wraps `src/Simple.svelte` in `QueryClientProvider` together with `SvelteQueryDevtools`.
8- `src/Simple.svelte` reads a query with `createQuery` and renders its pending, error, and success states.
9- `vite.config.ts` uses the `svelte()` plugin with `vitePreprocess()`.
10- CI runs the `build` (`vite build`) and `test:types` (`svelte-check`) scripts.
11​
12To run it from the repository root:
13​
14- `pnpm nx run @tanstack/query-integration-svelte-vite:build`
15- `pnpm nx run @tanstack/query-integration-svelte-vite:test:types`