Skip to content

Commit ba85705

Browse files
authored
docs: Update code example to use v4 convention (#4010)
1 parent e6df356 commit ba85705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { dehydrate, QueryClient, useQuery } from '@tanstack/react-query';
8383
export async function getStaticProps() {
8484
const queryClient = new QueryClient()
8585

86-
await queryClient.prefetchQuery('posts', getPosts)
86+
await queryClient.prefetchQuery(['posts'], getPosts)
8787

8888
return {
8989
props: {

0 commit comments

Comments
 (0)