Skip to content

Commit

Permalink
docs(react-query):fix-missing-isServer-import (#7849)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryxxn authored Aug 5, 2024
1 parent 0696b51 commit d14e006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/framework/react/guides/advanced-ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit d14e006

Please sign in to comment.