Skip to content

Commit

Permalink
Merge branch 'main' into react-query/split-prefetch.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo authored Sep 8, 2024
2 parents 433a4c0 + 49bfe68 commit 0d5a3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/guides/advanced-ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ One way to think of this is that even though Server Components also _render_, th
The first step of any React Query setup is always to create a `queryClient` and wrap your application in a `QueryClientProvider`. With Server Components, this looks mostly the same across frameworks, one difference being the filename conventions:

```tsx
// In Next.js, this file would be called: app/providers.jsx
// In Next.js, this file would be called: app/providers.tsx
'use client'

// Since QueryClientProvider relies on useContext under the hood, we have to put 'use client' on top
Expand Down

0 comments on commit 0d5a3fe

Please sign in to comment.