From 967a649966b0f9804fcc4a44a1d3059bb7d5be94 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 17 Jan 2023 15:34:03 -0500 Subject: [PATCH] chore: add abortDelay prop to Signed-off-by: Logan McAnsh --- .../fixtures/indie-stack/app/entry.server.tsx | 6 +++++- .../remix-dev/config/defaults/entry.server.node.tsx | 6 +++++- scripts/playground/template/app/entry.server.tsx | 6 +++++- templates/express/app/entry.server.tsx | 12 ++++++++++-- templates/fly/app/entry.server.tsx | 12 ++++++++++-- templates/remix/app/entry.server.tsx | 12 ++++++++++-- 6 files changed, 45 insertions(+), 9 deletions(-) diff --git a/packages/remix-dev/__tests__/migrations/fixtures/indie-stack/app/entry.server.tsx b/packages/remix-dev/__tests__/migrations/fixtures/indie-stack/app/entry.server.tsx index 92ac9fc5133..f2bba9eb1c9 100644 --- a/packages/remix-dev/__tests__/migrations/fixtures/indie-stack/app/entry.server.tsx +++ b/packages/remix-dev/__tests__/migrations/fixtures/indie-stack/app/entry.server.tsx @@ -16,7 +16,11 @@ export default function handleRequest( let didError = false; let { pipe, abort } = renderToPipeableStream( - , + , { onShellReady: () => { let body = new PassThrough(); diff --git a/packages/remix-dev/config/defaults/entry.server.node.tsx b/packages/remix-dev/config/defaults/entry.server.node.tsx index 05d7a0ef9b1..7cf247b54b0 100644 --- a/packages/remix-dev/config/defaults/entry.server.node.tsx +++ b/packages/remix-dev/config/defaults/entry.server.node.tsx @@ -16,7 +16,11 @@ export default function handleRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onAllReady() { const body = new PassThrough(); diff --git a/scripts/playground/template/app/entry.server.tsx b/scripts/playground/template/app/entry.server.tsx index bdea439be98..d66647db06a 100644 --- a/scripts/playground/template/app/entry.server.tsx +++ b/scripts/playground/template/app/entry.server.tsx @@ -21,7 +21,11 @@ export default function handleRequest( let didError = false; let { pipe, abort } = renderToPipeableStream( - , + , { [callbackName]: () => { let body = new PassThrough(); diff --git a/templates/express/app/entry.server.tsx b/templates/express/app/entry.server.tsx index d349f8e1a84..a7bacb9242e 100644 --- a/templates/express/app/entry.server.tsx +++ b/templates/express/app/entry.server.tsx @@ -38,7 +38,11 @@ function handleBotRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onAllReady() { const body = new PassThrough(); @@ -79,7 +83,11 @@ function handleBrowserRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onShellReady() { const body = new PassThrough(); diff --git a/templates/fly/app/entry.server.tsx b/templates/fly/app/entry.server.tsx index d349f8e1a84..a7bacb9242e 100644 --- a/templates/fly/app/entry.server.tsx +++ b/templates/fly/app/entry.server.tsx @@ -38,7 +38,11 @@ function handleBotRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onAllReady() { const body = new PassThrough(); @@ -79,7 +83,11 @@ function handleBrowserRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onShellReady() { const body = new PassThrough(); diff --git a/templates/remix/app/entry.server.tsx b/templates/remix/app/entry.server.tsx index d349f8e1a84..a7bacb9242e 100644 --- a/templates/remix/app/entry.server.tsx +++ b/templates/remix/app/entry.server.tsx @@ -38,7 +38,11 @@ function handleBotRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onAllReady() { const body = new PassThrough(); @@ -79,7 +83,11 @@ function handleBrowserRequest( let didError = false; const { pipe, abort } = renderToPipeableStream( - , + , { onShellReady() { const body = new PassThrough();