From d14e0060c8ea635b83efc7405c4b89443c8a816d Mon Sep 17 00:00:00 2001 From: dochi Date: Mon, 5 Aug 2024 16:36:45 +0900 Subject: [PATCH] docs(react-query):fix-missing-isServer-import (#7849) --- docs/framework/react/guides/advanced-ssr.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/framework/react/guides/advanced-ssr.md b/docs/framework/react/guides/advanced-ssr.md index bbbac63208..20406d53a2 100644 --- a/docs/framework/react/guides/advanced-ssr.md +++ b/docs/framework/react/guides/advanced-ssr.md @@ -371,7 +371,11 @@ We will also need to move the `getQueryClient()` function out of our `app/provid ```tsx // app/get-query-client.ts -import { QueryClient, defaultShouldDehydrateQuery } from '@tanstack/react-query' +import { + isServer, + QueryClient, + defaultShouldDehydrateQuery, +} from '@tanstack/react-query' function makeQueryClient() { return new QueryClient({