Function: Suspense()

Estimated reading time: less than 1 minute
function Suspense(props): Element

A component that returns a fallback while the async children are loading.

The rid prop is the one renderToStream returns, this way the suspense knows which request it belongs to.

Warning: Using Suspense without any type of runtime support will LEAK memory and not work. Always use with renderToStream or within a framework that supports it.

Parameters

props

SuspenseProps

Returns

Element