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: src/routes/reference/rendering/render-to-string-async.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Function that returns the root output to render.
50
50
51
51
-**Type:**`number`
52
52
53
-
Maximum wait time for suspense boundaries before the render resolves.
53
+
Maximum wait time before the returned promise rejects.
54
54
55
55
#### `nonce`
56
56
@@ -68,7 +68,7 @@ Identifier used to namespace the render output.
68
68
69
69
-**Type:**`boolean`
70
70
71
-
Disables script emission in the rendered output.
71
+
Disables script emission, including serialized data used for hydration continuation.
72
72
73
73
#### `onError`
74
74
@@ -84,7 +84,8 @@ Promise that resolves to the rendered HTML string.
84
84
85
85
## Behavior
86
86
87
-
-`renderToStringAsync` waits for server suspense boundaries to settle before resolving.
87
+
-`renderToStringAsync` is a server rendering API and is unsupported in browser bundles. It builds on [`renderToStream`](/reference/rendering/render-to-stream) and waits for the full stream result before resolving.
88
+
- If the timeout elapses, the returned promise rejects instead of resolving partial HTML.
88
89
- Resource data is serialized for client hydration unless scripts are disabled.
89
90
-`renderId` namespaces the render output when multiple top-level roots are present.
0 commit comments