mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
chore: update vinext, add workaround (#32878)
This commit is contained in:
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user