Function: runWithAutoSuspense()
Estimated reading time: less than 1 minuteRuns a callback with the request ID used by
AutoSuspense.
Framework integrations use this before route handlers execute so nested synchronous and asynchronous components can share the request ID without receiving it as a prop.
Type Parameters
R
R
Parameters
rid
string | number
The request ID to associate with automatic Suspense boundaries.
callback
() => R
The callback that constructs the JSX tree.
Returns
R
The callback result without awaiting or otherwise changing it.