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 5a23f96 commit 9c67e34Copy full SHA for 9c67e34
packages/plugin-rsc/examples/nested-rsc-css-hmr/src/nested-rsc/server.tsx
@@ -9,7 +9,8 @@ import { TestNestedRscInner } from './inner'
9
// whose module lives only in the `rsc` environment is rendered through
10
// a nested Flight stream and embedded back into the outer tree.
11
export function TestNestedRsc() {
12
- const stream = renderToReadableStream(<TestNestedRscInner />)
13
- const deserialized = createFromReadableStream<React.ReactNode>(stream)
+ const original = <TestNestedRscInner />
+ const stream = renderToReadableStream(original)
14
+ const deserialized = createFromReadableStream<typeof original>(stream)
15
return <div>test-nested-rsc:{deserialized}</div>
16
}
0 commit comments