Skip to content

Commit c8a243d

Browse files
committed
Kept as post now not using vite renderRequest
1 parent 7f3d331 commit c8a243d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NavigationReact/sample/rsc-vite/src/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function hydrate() {
4040
ReactDOM.hydrateRoot(document, <Shell />);
4141
}
4242
async function fetchRSC(url: string, {body, ...options}: any) {
43-
const payload = await createFromFetch(fetch(url, {...options, body: JSON.stringify(body), method: 'PUT'})) as any;
43+
const payload = await createFromFetch(fetch(url, {...options, body: JSON.stringify(body)})) as any;
4444
return payload.root;
4545
}
4646
hydrate();

0 commit comments

Comments
 (0)