Skip to content

Commit 33ddd5f

Browse files
committed
Fix duplicate words in reference docs
Remove accidental repeated words in three reference pages: - createRoot: 'can can' -> 'can' - resumeAndPrerenderToNodeStream: 'a a' -> 'a' - react-performance-tracks: 'the the' -> 'the'
1 parent 7c36f7a commit 33ddd5f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/content/reference/dev-tools/react-performance-tracks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ In development builds, when you click on a component render entry, you can inspe
140140

141141
The Server Requests track visualized all Promises that eventually end up in a React Server Component. This includes any `async` operations like calling `fetch` or async Node.js file operations.
142142

143-
React will try to combine Promises that are started from inside third-party code into a single span representing the the duration of the entire operation blocking 1st party code.
143+
React will try to combine Promises that are started from inside third-party code into a single span representing the duration of the entire operation blocking 1st party code.
144144
For example, a third party library method called `getUser` that calls `fetch` internally multiple times will be represented as a single span called `getUser`, instead of showing multiple `fetch` spans.
145145

146146
Clicking on spans will show you a stack trace of where the Promise was created as well as a view of the value that the Promise resolved to, if available.

src/content/reference/react-dom/client/createRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ The <CodeStep step={1}>onCaughtError</CodeStep> option is a function called with
379379
1. The <CodeStep step={2}>error</CodeStep> that was thrown.
380380
2. An <CodeStep step={3}>errorInfo</CodeStep> object that contains the <CodeStep step={4}>componentStack</CodeStep> of the error.
381381
382-
Together with `onUncaughtError` and `onRecoverableError`, you can can implement your own error reporting system:
382+
Together with `onUncaughtError` and `onRecoverableError`, you can implement your own error reporting system:
383383
384384
<Sandpack>
385385

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: resumeAndPrerenderToNodeStream
44

55
<Intro>
66

7-
`resumeAndPrerenderToNodeStream` continues a prerendered React tree to a static HTML string using a a [Node.js Stream.](https://nodejs.org/api/stream.html).
7+
`resumeAndPrerenderToNodeStream` continues a prerendered React tree to a static HTML string using a [Node.js Stream.](https://nodejs.org/api/stream.html).
88

99
```js
1010
const {prelude, postponed} = await resumeAndPrerenderToNodeStream(reactNode, postponedState, options?)

0 commit comments

Comments
 (0)