We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2813d8 commit 0d74403Copy full SHA for 0d74403
packages/plugin-rsc/examples/basic/src/framework/entry.rsc.tsx
@@ -56,11 +56,12 @@ export async function handleRequest({
56
}
57
58
const url = new URL(request.url)
59
- const rscStream = ReactServer.renderToReadableStream<RscPayload>({
60
- root: getRoot(),
61
- returnValue,
62
- formState,
63
- })
+ const rscPayload: RscPayload = { root: getRoot(), formState, returnValue }
+ const rscOptions = { temporaryReferences }
+ const rscStream = ReactServer.renderToReadableStream<RscPayload>(
+ rscPayload,
+ rscOptions,
64
+ )
65
66
// respond RSC stream without HTML rendering based on framework's convention.
67
// here we use request header `content-type`.
0 commit comments