Skip to content

Commit

Permalink
chore: fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Mar 21, 2024
1 parent e0ead7f commit 2ddf803
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/framework/react/guides/advanced-ssr.md
Expand Up @@ -99,7 +99,12 @@ Let's next look at how to actually prefetch data and dehydrate and hydrate it. T

```tsx
// pages/posts.jsx
import { dehydrate, HydrationBoundary, QueryClient, useQuery } from '@tanstack/react-query'
import {
dehydrate,
HydrationBoundary,
QueryClient,
useQuery,
} from '@tanstack/react-query'

// This could also be getServerSideProps
export async function getStaticProps() {
Expand Down
9 changes: 7 additions & 2 deletions docs/framework/react/guides/ssr.md
Expand Up @@ -215,7 +215,12 @@ In each route:

```tsx
// pages/posts.jsx
import { dehydrate, HydrationBoundary, QueryClient, useQuery } from '@tanstack/react-query'
import {
dehydrate,
HydrationBoundary,
QueryClient,
useQuery,
} from '@tanstack/react-query'

// This could also be getServerSideProps
export async function getStaticProps() {
Expand Down Expand Up @@ -327,7 +332,7 @@ function Posts() {
}

export default function PostsRoute() {
const { dehydratedState } = useLoaderData<typeof loader>();
const { dehydratedState } = useLoaderData<typeof loader>()
return (
<HydrationBoundary state={dehydratedState}>
<Posts />
Expand Down

0 comments on commit 2ddf803

Please sign in to comment.