File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/plugin-rsc/examples/navigation/src Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { createFromFetch, createFromReadableStream } from "@vitejs/plugin-rsc/br
55import "@vitejs/plugin-rsc/browser-LizIyxet" ;
66// @ts -ignore
77import { rscStream } from "@vitejs/plugin-rsc/client-edAdk2GF" ;
8- import { useState , useMemo , StrictMode } from "react" ;
8+ import { useState , useMemo } from "react" ;
99import ReactDomClient from "react-dom/client" ;
1010import { BundlerContext } from 'navigation-react' ;
1111
@@ -15,11 +15,9 @@ async function hydrate() {
1515 const [ payload , setPayload ] = useState ( initialPayload ) ;
1616 const bundler = useMemo ( ( ) => ( { setRoot : setPayload , deserialize : fetchRSC } ) , [ ] ) ;
1717 return (
18- < StrictMode >
19- < BundlerContext . Provider value = { bundler } >
20- { payload . root }
21- </ BundlerContext . Provider >
22- </ StrictMode >
18+ < BundlerContext . Provider value = { bundler } >
19+ { payload . root }
20+ </ BundlerContext . Provider >
2321 ) ;
2422 }
2523 ReactDomClient . hydrateRoot ( document , < Shell /> ) ;
You can’t perform that action at this time.
0 commit comments