Skip to content
Source
Sign inSign up
TanStack/query

attempt repro #8682

Closedjuliusmarmingewants to merge 2 commits intomain fromjulius/max-depthopened View on GitHub

Showing 6 changed files with 56 additions and 7 deletions (loading 2).

x
0 of 6 viewed, 6 left
16 additions and 0 deletionsintegrations/react-next-15/app/authors/page.tsxAdded
View file
@@ -0,0 +1,16 @@
+import { HydrationBoundary, dehydrate } from '@tanstack/react-query'
+import { makeQueryClient } from '../make-query-client'
+import { getApiV1AuthorsOptions } from '../query'
+import { Authors } from '../client-component'
+​
+export default async function Page() {
+ const queryClient = makeQueryClient()
+​
+ const data = await queryClient.fetchQuery({ ...getApiV1AuthorsOptions() })
+​
+ return (
+ <HydrationBoundary state={dehydrate(queryClient)}>
+ <Authors />
+ </HydrationBoundary>
+ )
+}
29 additions and 2 deletionsintegrations/react-next-15/app/client-component.tsxModified
View file
@@ -1,8 +1,9 @@
'use client'
-​
+import { useQuery, useSuspenseQuery } from '@tanstack/react-query'
+import Link from 'next/link'
import React from 'react'
-import { useQuery } from '@tanstack/react-query'