Skip to content

Commit ec0061f

Browse files
committed
Fix typos in resumeAndPrerender docs
1 parent f5fa1e8 commit ec0061f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/content/reference/react-dom/static/prerenderToNodeStream.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
6767
#### Returns {/*returns*/}
6868
6969
`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:
7171
- `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.
7272
- `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.
7373
- 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)

‎src/content/reference/react-dom/static/resumeAndPrerender.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
5858
5959
#### Returns {/*returns*/}
6060
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:
6363
- `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.
6565
- 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)
6666
6767
#### Caveats {/*caveats*/}

‎src/content/reference/react-dom/static/resumeAndPrerenderToNodeStream.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This API is specific to Node.js. Environments with [Web Streams,](https://develo
2424
2525
## Reference {/*reference*/}
2626
27-
### `resumeAndPrerenderToNodeStream(reactNode, postponedState, options?)` {/*resumeandprerendertolnodestream*/}
27+
### `resumeAndPrerenderToNodeStream(reactNode, postponedState, options?)` {/*resumeandprerendertonodestream*/}
2828
2929
Call `resumeAndPrerenderToNodeStream` to continue a prerendered React tree to a static HTML string.
3030
@@ -55,9 +55,9 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
5555
#### Returns {/*returns*/}
5656
5757
`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:
5959
- `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.
6161
- 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)
6262
6363
#### Caveats {/*caveats*/}

0 commit comments

Comments
 (0)