We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd2f69 commit 308aa7eCopy full SHA for 308aa7e
docs/framework/react/guides/advanced-ssr.md
@@ -29,9 +29,7 @@ The first step of any React Query setup is always to create a `queryClient` and
29
// In Next.js, this file would be called: app/providers.jsx
30
'use client'
31
32
-// We can not useState or useRef in a server component, which is why we are
33
-// extracting this part out into it's own file with 'use client' on top
34
-import { useState } from 'react'
+// Since QueryClientProvider relies on useContext under the hood, we have to put 'use client' on top
35
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
36
37
function makeQueryClient() {
0 commit comments