renderToStringAsync
Edit this pageSame as renderToString
except that it will wait for all <Suspense>
boundaries to resolve before returning the results.
Resource data is automatically serialized into the script tag and will be hydrated on client load.
renderId
is used to namespace renders when having multiple top level roots.
Options
Name | Type | Description |
---|---|---|
timeoutMs | number | The number of milliseconds to wait for a <Suspense> boundary to resolve before timing out. |
renderId | string | The id to use for the render. |
nonce | string | The nonce to use for the script tag. |