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
{{ message }}
Repository navigation
Commit ec0061f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/static/prerenderToNodeStream.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
67
67
#### Returns {/*returns*/}
68
68
69
69
`prerenderToNodeStream` returns a Promise:
70
-
- If rendering the is successful, the Promise will resolve to an object containing:
70
+
- If rendering is successful, the Promise will resolve to an object containing:
71
71
- `prelude`: a [Node.js Stream.](https://nodejs.org/api/stream.html) of HTML. You can use this stream to send a response in chunks, or you can read the entire stream into a string.
72
72
- `postponed`: a JSON-serializeable, opaque object that can be passed to [`resumeToPipeableStream`](/reference/react-dom/server/resumeToPipeableStream) if `prerenderToNodeStream` did not finish. Otherwise `null` indicating that the `prelude` contains all the content and no resume is necessary.
73
73
- If rendering fails, the Promise will be rejected. [Use this to output a fallback shell.](/reference/react-dom/server/renderToPipeableStream#recovering-from-errors-inside-the-shell)
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/static/resumeAndPrerender.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,10 +58,10 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
58
58
59
59
#### Returns {/*returns*/}
60
60
61
-
`prerender` returns a Promise:
62
-
- If rendering the is successful, the Promise will resolve to an object containing:
61
+
`resumeAndPrerender` returns a Promise:
62
+
- If rendering is successful, the Promise will resolve to an object containing:
63
63
- `prelude`: a [Web Stream](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) of HTML. You can use this stream to send a response in chunks, or you can read the entire stream into a string.
64
-
- `postponed`: an JSON-serializeable, opaque object that can be passed to [`resume`](/reference/react-dom/server/resume) or [`resumeAndPrerender`](/reference/react-dom/static/resumeAndPrerender) if `prerender` is aborted.
64
+
- `postponed`: a JSON-serializeable, opaque object that can be passed to [`resume`](/reference/react-dom/server/resume) or [`resumeAndPrerender`](/reference/react-dom/static/resumeAndPrerender) if `resumeAndPrerender` is aborted.
65
65
- If rendering fails, the Promise will be rejected. [Use this to output a fallback shell.](/reference/react-dom/server/renderToReadableStream#recovering-from-errors-inside-the-shell)
Call `resumeAndPrerenderToNodeStream` to continue a prerendered React tree to a static HTML string.
30
30
@@ -55,9 +55,9 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
55
55
#### Returns {/*returns*/}
56
56
57
57
`resumeAndPrerenderToNodeStream` returns a Promise:
58
-
- If rendering the is successful, the Promise will resolve to an object containing:
58
+
- If rendering is successful, the Promise will resolve to an object containing:
59
59
- `prelude`: a [Web Stream](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) of HTML. You can use this stream to send a response in chunks, or you can read the entire stream into a string.
60
-
- `postponed`: an JSON-serializeable, opaque object that can be passed to [`resumeToPipeableStream`](/reference/react-dom/server/resumeToPipeableStream) or [`resumeAndPrerenderToNodeStream`](/reference/react-dom/static/resumeAndPrerenderToNodeStream) if `resumeAndPrerenderToNodeStream` is aborted.
60
+
- `postponed`: a JSON-serializeable, opaque object that can be passed to [`resumeToPipeableStream`](/reference/react-dom/server/resumeToPipeableStream) or [`resumeAndPrerenderToNodeStream`](/reference/react-dom/static/resumeAndPrerenderToNodeStream) if `resumeAndPrerenderToNodeStream` is aborted.
61
61
- If rendering fails, the Promise will be rejected. [Use this to output a fallback shell.](/reference/react-dom/server/renderToReadableStream#recovering-from-errors-inside-the-shell)
0 commit comments