Skip to content

Commit f71f40c

Browse files
committed
test: add to examples/basic too
1 parent 72515f9 commit f71f40c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-rsc/examples/basic/src/framework/entry.ssr.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export async function renderHTML(
2424
// deserialization needs to be kicked off inside ReactDOMServer context
2525
// for ReactDomServer preinit/preloading to work
2626
payload ??= ReactClient.createFromReadableStream<RscPayload>(rscStream1)
27-
return React.use(payload).root
27+
return <FixSsrThenable>{React.use(payload).root}</FixSsrThenable>
28+
}
29+
30+
function FixSsrThenable(props: React.PropsWithChildren) {
31+
return props.children
2832
}
2933

3034
// render html (traditional SSR)

0 commit comments

Comments
 (0)