You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/how-to/suspense.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,12 @@ function NonCriticalUI({ p }: { p: Promise<string> }) {
75
75
return <h3>Non critical value {value}</h3>;
76
76
}
77
77
```
78
+
79
+
## Timeouts
80
+
81
+
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`.
82
+
83
+
```ts filename=entry.server.tsx
84
+
// Reject all pending promises from handler functions after 10 seconds
0 commit comments