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
@@ -343,10 +342,6 @@ Fixed 2 security vulnerabilities that could result in cache-poisoning attacks by
343
342
- Optionally, set `X-Remix-Replace: true` or `X-Remix-Reload-Document: true` headers to replicate `replace()`/`redirectDocument()` functionality
344
343
- ⚠️ Please note that these responses rely on implementation details that are subject to change without a SemVer major release, and it is recommended you set up integration tests for your application to confirm this functionality is working correctly with each future React Router upgrade
345
344
346
-
### Unstable Changes
347
-
348
-
⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
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