From eed3444ad235577d2c3d4aed70c65849a63b5a68 Mon Sep 17 00:00:00 2001 From: Will Smith Date: Wed, 16 Apr 2025 06:42:12 -0700 Subject: [PATCH 1/2] Add timeout section to streaming wiki --- docs/how-to/suspense.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/how-to/suspense.md b/docs/how-to/suspense.md index adcfc1fdcf..fc61dc7124 100644 --- a/docs/how-to/suspense.md +++ b/docs/how-to/suspense.md @@ -75,3 +75,12 @@ function NonCriticalUI({ p }: { p: Promise }) { return

Non critical value {value}

; } ``` + +## Timeouts + +By default, loaders and actions reject any outstanding promises after 4950ms. You can control this by exporting a `streamTimeout` numerical value from your `entry.server.tsx`. + +```ts filename=entry.server.tsx +// Reject all pending promises from handler functions after 10 seconds +export const streamTimeout = 10_000; +``` From 697e4e508d7982c91adfa2f904ae7e20a82b0724 Mon Sep 17 00:00:00 2001 From: Will Smith Date: Sun, 27 Apr 2025 06:50:33 -0700 Subject: [PATCH 2/2] Update contributors.yml --- contributors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.yml b/contributors.yml index 9c6f768a02..652baced72 100644 --- a/contributors.yml +++ b/contributors.yml @@ -366,6 +366,7 @@ - willemarcel - williamsdyyz - willsawyerrrr +- willsmithte - wkovacs64 - xavier-lc - xcsnowcity