File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 '
410410import { cache } from ' react'
411411
412412const 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'
430429import getQueryClient from ' ./getQueryClient'
431430
432431export default async function HydratedPosts() {
You can’t perform that action at this time.
0 commit comments