Skip to content

Commit

Permalink
Don't allow out of order streaming in SPA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Mar 18, 2024
1 parent 1f1f429 commit 1037483
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/remix-dev/config/defaults/entry.server.node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export default function handleRequest(
remixContext: EntryContext,
loadContext: AppLoadContext
) {
return isBotRequest(request.headers.get("user-agent"))
let prohibitOutOfOrderStreaming =
isBotRequest(request.headers.get("user-agent")) || remixContext.isSpaMode;

return prohibitOutOfOrderStreaming
? handleBotRequest(
request,
responseStatusCode,
Expand Down

0 comments on commit 1037483

Please sign in to comment.