From 308aa7eaa12e0b8954ae6bd6bdf8e67cbbb6dff8 Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Sat, 18 May 2024 08:37:14 -0400 Subject: [PATCH] docs: Remove unused useState import from example (#7435) --- docs/framework/react/guides/advanced-ssr.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/framework/react/guides/advanced-ssr.md b/docs/framework/react/guides/advanced-ssr.md index abef70e177..6af0647c55 100644 --- a/docs/framework/react/guides/advanced-ssr.md +++ b/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 // 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() {