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 8467c84 commit 2563ab5Copy full SHA for 2563ab5
NavigationReact/sample/rsc-webpack/src/index.js
@@ -28,13 +28,7 @@ function Shell({data}) {
28
);
29
}
30
31
-const root = await createFromFetch(
32
- fetch(window.location.pathname + window.location.search, {
33
- headers: {
34
- Accept: 'text/x-component',
35
- },
36
- })
37
-);
+const root = await fetchRSC(window.location.pathname + window.location.search);
38
39
ReactDOM.hydrateRoot(document, <Shell data={root} />);
40
0 commit comments