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 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; +```