chore: update vinext, add workaround (#32878)

This commit is contained in:
Stephen Zhou
2026-03-03 11:21:04 +08:00
committed by GitHub
parent 4fd6b52808
commit d6ab36ff1e
7 changed files with 74 additions and 124 deletions

View File

@ -37,6 +37,10 @@ export async function HydrateQueryClient({
children: React.ReactNode
}) {
const dehydratedState = await getDehydratedState(searchParams)
// TODO: vinext do not handle hydration boundary well for now.
if (!dehydratedState) {
return <>{children}</>
}
return (
<HydrationBoundary state={dehydratedState}>
{children}