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 f5fd71f commit fbe0bbfCopy full SHA for fbe0bbf
packages/plugin-rsc/examples/navigation/src/client.tsx
@@ -12,11 +12,11 @@ import { BundlerContext } from 'navigation-react';
12
async function hydrate() {
13
const initialPayload = await createFromReadableStream(rscStream);
14
function Shell() {
15
- const [payload, setPayload] = useState(initialPayload.root);
16
- const bundler = useMemo(() => ({setRoot: setPayload, deserialize: fetchRSC}), []);
+ const [root, setRoot] = useState(initialPayload.root);
+ const bundler = useMemo(() => ({setRoot, deserialize: fetchRSC}), []);
17
return (
18
<BundlerContext.Provider value={bundler}>
19
- {payload}
+ {root}
20
</BundlerContext.Provider>
21
);
22
}
0 commit comments