Skip to content

Commit

Permalink
Rename Remix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Jul 1, 2024
1 parent 2f8185b commit 692d703
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function handleRequest(
request: Request,
responseStatusCode: number,
responseHeaders: Headers,
remixContext: EntryContext,
routerContext: EntryContext,
loadContext: AppLoadContext
) {
return new Promise((resolve, reject) => {
Expand All @@ -23,13 +23,13 @@ export default function handleRequest(
// Ensure requests from bots and SPA Mode renders wait for all content to load before responding
// https://react.dev/reference/react-dom/server/renderToPipeableStream#waiting-for-all-content-to-load-for-crawlers-and-static-generation
let readyOption: keyof RenderToPipeableStreamOptions =
(userAgent && isbot(userAgent)) || remixContext.isSpaMode
(userAgent && isbot(userAgent)) || routerContext.isSpaMode
? "onAllReady"
: "onShellReady";

const { pipe, abort } = renderToPipeableStream(
<ServerRouter
context={remixContext}
context={routerContext}
url={request.url}
abortDelay={ABORT_DELAY}
/>,
Expand Down

0 comments on commit 692d703

Please sign in to comment.