Skip to content

Commit 00ad327

Browse files
chore(frontend): bump dependencies
1 parent fda2b9f commit 00ad327

File tree

3 files changed

+277
-279
lines changed

3 files changed

+277
-279
lines changed

frontend/app/entry.server.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { getLanguage } from '~/utils/i18n-utils';
1717

1818
/* eslint-disable no-param-reassign */
1919

20-
const ABORT_DELAY = 5_000;
21-
2220
export default async function handleRequest(
2321
request: Request,
2422
responseStatusCode: number,
@@ -45,7 +43,7 @@ export default async function handleRequest(
4543

4644
const { pipe, abort } = renderToPipeableStream(
4745
<I18nextProvider i18n={i18n}>
48-
<ServerRouter context={routerContext} url={request.url} abortDelay={ABORT_DELAY} nonce={loadContext.nonce} />
46+
<ServerRouter context={routerContext} url={request.url} nonce={loadContext.nonce} />
4947
</I18nextProvider>,
5048
{
5149
[readyOption]() {
@@ -80,7 +78,10 @@ export default async function handleRequest(
8078
},
8179
);
8280

83-
setTimeout(abort, ABORT_DELAY);
81+
// Abort the streaming render pass after 11 seconds
82+
// to allow the rejected boundaries to be flushed
83+
// see: https://reactrouter.com/explanation/special-files#streamtimeout
84+
setTimeout(abort, 10_000);
8485
});
8586
}
8687

0 commit comments

Comments
 (0)