File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/plugin-rsc/examples/navigation/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { BundlerContext } from 'navigation-react';
1414async 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 , { } ) } ) ;
You can’t perform that action at this time.
0 commit comments