Skip to content
Source
Sign inSign up
TanStack/router

fix: various fixes #5215

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/5215/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 15 changed files with 16 additions and 14 deletions (loading 11).

x
0 of 15 viewed, 15 left
5 additions and 5 deletionsdocs/router/integrations/query.mdModified
View file
@@ -18,13 +18,13 @@
The TanStack query integration is a separate package that you need to install:
​
```sh
-npm install -D @tanstack/react-router-ssr-query
+npm install @tanstack/react-router-ssr-query
# or
-pnpm add -D @tanstack/react-router-ssr-query
+pnpm add @tanstack/react-router-ssr-query
# or
-yarn add -D @tanstack/react-router-ssr-query
+yarn add @tanstack/react-router-ssr-query
# or
-bun add -D @tanstack/react-router-ssr-query
+bun add @tanstack/react-router-ssr-query
```
​
## Setup
@@ -38,7 +38,7 @@
import { setupRouterSsrQueryIntegration } from '@tanstack/react-router-ssr-query'
import { routeTree } from './routeTree.gen'
​
-export function createAppRouter() {
+export function getRouter() {
const queryClient = new QueryClient()