Skip to content

Commit 8977949

Browse files
committed
Renamed for clarity
1 parent 215c9ca commit 8977949

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { BundlerContext } from 'navigation-react';
1414
async function hydrate() {
1515
const initialPayload = await createFromReadableStream(rscStream);
1616
function Shell() {
17-
const [payload, setPayload_] = React.useState(initialPayload);
18-
const bundler = React.useMemo(() => ({setRoot: setPayload_, deserialize: fetchRSC}), []);
17+
const [payload, setPayload] = React.useState(initialPayload);
18+
const bundler = React.useMemo(() => ({setRoot: setPayload, deserialize: fetchRSC}), []);
1919
return jsx(BundlerContext.Provider, { value: bundler, children: payload.root });
2020
}
2121
const browserRoot = /* @__PURE__ */ jsx(React.StrictMode, { children: /* @__PURE__ */ jsx(Shell, {}) });

0 commit comments

Comments
 (0)