Skip to content

Commit 9fd54ef

Browse files
committed
docs: replace query-core imports with react-query imports
1 parent 08d6c84 commit 9fd54ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/react/guides/ssr.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Create a request-scoped singleton instance of `QueryClient`. **This ensures that
406406

407407
```tsx
408408
// app/getQueryClient.jsx
409-
import { QueryClient } from '@tanstack/query-core'
409+
import { QueryClient } from '@tanstack/react-query'
410410
import { cache } from 'react'
411411

412412
const getQueryClient = cache(() => new QueryClient())
@@ -425,8 +425,7 @@ Fetch your data in a Server Component higher up in the component tree than the C
425425
426426
```tsx
427427
// app/hydratedPosts.jsx
428-
import { dehydrate } from '@tanstack/query-core'
429-
import { Hydrate } from '@tanstack/react-query'
428+
import { dehydrate, Hydrate } from '@tanstack/react-query'
430429
import getQueryClient from './getQueryClient'
431430

432431
export default async function HydratedPosts() {

0 commit comments

Comments
 (0)