Skip to content

Commit

Permalink
docs: Remove unused useState import from example (#7435)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergical authored May 18, 2024
1 parent 2dd2f69 commit 308aa7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/framework/react/guides/advanced-ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ The first step of any React Query setup is always to create a `queryClient` and
// In Next.js, this file would be called: app/providers.jsx
'use client'

// We can not useState or useRef in a server component, which is why we are
// extracting this part out into it's own file with 'use client' on top
import { useState } from 'react'
// Since QueryClientProvider relies on useContext under the hood, we have to put 'use client' on top
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'

function makeQueryClient() {
Expand Down

0 comments on commit 308aa7e

Please sign in to comment.