@@ -184,9 +184,9 @@ Create a `src/browser.tsx` file that will act as the entrypoint for hydration.
184184import { startTransition , StrictMode } from " react" ;
185185import { hydrateRoot } from " react-dom/client" ;
186186import {
187- type unstable_ServerPayload as ServerPayload ,
187+ type unstable_RSCPayload as RSCPayload ,
188188 unstable_createCallServer as createCallServer ,
189- unstable_getServerStream as getServerStream ,
189+ unstable_getRSCStream as getRSCStream ,
190190 unstable_RSCHydratedRouter as RSCHydratedRouter ,
191191} from " react-router" ;
192192import {
@@ -205,8 +205,8 @@ setServerCallback(
205205);
206206
207207// Get and decode the initial server payload
208- createFromReadableStream (getServerStream ()).then (
209- (payload : ServerPayload ) => {
208+ createFromReadableStream (getRSCStream ()).then (
209+ (payload : RSCPayload ) => {
210210 startTransition (async () => {
211211 hydrateRoot (
212212 document ,
@@ -231,7 +231,7 @@ Create a `src/routes/routes.ts` file that will define our routes with dynamic im
231231``` ts nonumber
232232" use server-entry" ;
233233
234- import type { unstable_ServerRouteObject as ServerRouteObject } from " react-router" ;
234+ import type { unstable_RSCRouteConfig as RSCRouteConfig } from " react-router" ;
235235
236236import " ../browser" ;
237237
@@ -254,7 +254,7 @@ export function routes() {
254254 },
255255 ],
256256 },
257- ] satisfies ServerRouteObject [] ;
257+ ] satisfies RSCRouteConfig ;
258258}
259259```
260260
0 commit comments