mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* chore: refresh Router and Start dependencies * chore: centralize shared dependencies * chore: keep examples self-contained * chore: sync catalog versions into examples * test(start-plugin-core): refresh hydration snapshots and portable fixtures |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
@tanstack/solid-router-ssr-query
SSR query integration for TanStack Solid Router and TanStack Solid Query.
This package provides seamless integration between TanStack Router and TanStack Query for server-side rendering in Solid applications.
Installation
npm install @tanstack/solid-router-ssr-query
# or
pnpm add @tanstack/solid-router-ssr-query
# or
yarn add @tanstack/solid-router-ssr-query
Usage
import { QueryClient } from '@tanstack/solid-query'
import { createRouter } from '@tanstack/solid-router'
import { setupRouterSsrQueryIntegration } from '@tanstack/solid-router-ssr-query'
const queryClient = new QueryClient()
const router = createRouter({
routeTree,
context: { queryClient },
})
setupRouterSsrQueryIntegration({
router,
queryClient,
})
License
MIT