Skip to content

Commit fbe0bbf

Browse files
committed
Changed for consistency
Matches other navigation rsc examples
1 parent f5fd71f commit fbe0bbf

File tree

1 file changed

+3
-3
lines changed
  • packages/plugin-rsc/examples/navigation/src

1 file changed

+3
-3
lines changed

packages/plugin-rsc/examples/navigation/src/client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { BundlerContext } from 'navigation-react';
1212
async function hydrate() {
1313
const initialPayload = await createFromReadableStream(rscStream);
1414
function Shell() {
15-
const [payload, setPayload] = useState(initialPayload.root);
16-
const bundler = useMemo(() => ({setRoot: setPayload, deserialize: fetchRSC}), []);
15+
const [root, setRoot] = useState(initialPayload.root);
16+
const bundler = useMemo(() => ({setRoot, deserialize: fetchRSC}), []);
1717
return (
1818
<BundlerContext.Provider value={bundler}>
19-
{payload}
19+
{root}
2020
</BundlerContext.Provider>
2121
);
2222
}

0 commit comments

Comments
 (0)