Skip to content

Commit 967a649

Browse files
committed
chore: add abortDelay prop to <RemixServer>
Signed-off-by: Logan McAnsh <logan@mcan.sh>
1 parent 56fa937 commit 967a649

6 files changed

Lines changed: 45 additions & 9 deletions

File tree

‎packages/remix-dev/__tests__/migrations/fixtures/indie-stack/app/entry.server.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export default function handleRequest(
1616
let didError = false;
1717

1818
let { pipe, abort } = renderToPipeableStream(
19-
<RemixServer context={remixContext} url={request.url} />,
19+
<RemixServer
20+
context={remixContext}
21+
url={request.url}
22+
abortDelay={ABORT_DELAY}
23+
/>,
2024
{
2125
onShellReady: () => {
2226
let body = new PassThrough();

‎packages/remix-dev/config/defaults/entry.server.node.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export default function handleRequest(
1616
let didError = false;
1717

1818
const { pipe, abort } = renderToPipeableStream(
19-
<RemixServer context={remixContext} url={request.url} />,
19+
<RemixServer
20+
context={remixContext}
21+
url={request.url}
22+
abortDelay={ABORT_DELAY}
23+
/>,
2024
{
2125
onAllReady() {
2226
const body = new PassThrough();

‎scripts/playground/template/app/entry.server.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export default function handleRequest(
2121
let didError = false;
2222

2323
let { pipe, abort } = renderToPipeableStream(
24-
<RemixServer context={remixContext} url={request.url} />,
24+
<RemixServer
25+
context={remixContext}
26+
url={request.url}
27+
abortDelay={ABORT_DELAY}
28+
/>,
2529
{
2630
[callbackName]: () => {
2731
let body = new PassThrough();

‎templates/express/app/entry.server.tsx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ function handleBotRequest(
3838
let didError = false;
3939

4040
const { pipe, abort } = renderToPipeableStream(
41-
<RemixServer context={remixContext} url={request.url} />,
41+
<RemixServer
42+
context={remixContext}
43+
url={request.url}
44+
abortDelay={ABORT_DELAY}
45+
/>,
4246
{
4347
onAllReady() {
4448
const body = new PassThrough();
@@ -79,7 +83,11 @@ function handleBrowserRequest(
7983
let didError = false;
8084

8185
const { pipe, abort } = renderToPipeableStream(
82-
<RemixServer context={remixContext} url={request.url} />,
86+
<RemixServer
87+
context={remixContext}
88+
url={request.url}
89+
abortDelay={ABORT_DELAY}
90+
/>,
8391
{
8492
onShellReady() {
8593
const body = new PassThrough();

‎templates/fly/app/entry.server.tsx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ function handleBotRequest(
3838
let didError = false;
3939

4040
const { pipe, abort } = renderToPipeableStream(
41-
<RemixServer context={remixContext} url={request.url} />,
41+
<RemixServer
42+
context={remixContext}
43+
url={request.url}
44+
abortDelay={ABORT_DELAY}
45+
/>,
4246
{
4347
onAllReady() {
4448
const body = new PassThrough();
@@ -79,7 +83,11 @@ function handleBrowserRequest(
7983
let didError = false;
8084

8185
const { pipe, abort } = renderToPipeableStream(
82-
<RemixServer context={remixContext} url={request.url} />,
86+
<RemixServer
87+
context={remixContext}
88+
url={request.url}
89+
abortDelay={ABORT_DELAY}
90+
/>,
8391
{
8492
onShellReady() {
8593
const body = new PassThrough();

‎templates/remix/app/entry.server.tsx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ function handleBotRequest(
3838
let didError = false;
3939

4040
const { pipe, abort } = renderToPipeableStream(
41-
<RemixServer context={remixContext} url={request.url} />,
41+
<RemixServer
42+
context={remixContext}
43+
url={request.url}
44+
abortDelay={ABORT_DELAY}
45+
/>,
4246
{
4347
onAllReady() {
4448
const body = new PassThrough();
@@ -79,7 +83,11 @@ function handleBrowserRequest(
7983
let didError = false;
8084

8185
const { pipe, abort } = renderToPipeableStream(
82-
<RemixServer context={remixContext} url={request.url} />,
86+
<RemixServer
87+
context={remixContext}
88+
url={request.url}
89+
abortDelay={ABORT_DELAY}
90+
/>,
8391
{
8492
onShellReady() {
8593
const body = new PassThrough();

0 commit comments

Comments
 (0)