Skip to content

Commit 308aa7e

Browse files
authored
docs: Remove unused useState import from example (#7435)
1 parent 2dd2f69 commit 308aa7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/framework/react/guides/advanced-ssr.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ The first step of any React Query setup is always to create a `queryClient` and
2929
// In Next.js, this file would be called: app/providers.jsx
3030
'use client'
3131

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'
32+
// Since QueryClientProvider relies on useContext under the hood, we have to put 'use client' on top
3533
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
3634

3735
function makeQueryClient() {

0 commit comments

Comments
 (0)