Skip to content

Commit 9c67e34

Browse files
committed
fixes
1 parent 5a23f96 commit 9c67e34

File tree

1 file changed

+3
-2
lines changed
  • packages/plugin-rsc/examples/nested-rsc-css-hmr/src/nested-rsc

1 file changed

+3
-2
lines changed

packages/plugin-rsc/examples/nested-rsc-css-hmr/src/nested-rsc/server.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { TestNestedRscInner } from './inner'
99
// whose module lives only in the `rsc` environment is rendered through
1010
// a nested Flight stream and embedded back into the outer tree.
1111
export function TestNestedRsc() {
12-
const stream = renderToReadableStream(<TestNestedRscInner />)
13-
const deserialized = createFromReadableStream<React.ReactNode>(stream)
12+
const original = <TestNestedRscInner />
13+
const stream = renderToReadableStream(original)
14+
const deserialized = createFromReadableStream<typeof original>(stream)
1415
return <div>test-nested-rsc:{deserialized}</div>
1516
}

0 commit comments

Comments
 (0)