Skip to content

Commit 4ce9f73

Browse files
committed
Remove duped flushSync warning from linked React docs
1 parent 1193ae5 commit 4ce9f73

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

docs/hooks/use-fetcher.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ If you find yourself calling this function inside of click handlers, you can pro
137137

138138
The `unstable_flushSync` option tells React Router DOM to wrap the initial state update for this `fetcher.load` in a [`ReactDOM.flushSync`][flush-sync] call instead of the default [`React.startTransition`][start-transition]. This allows you to perform synchronous DOM actions immediately after the update is flushed to the DOM.
139139

140-
<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>
141-
142140
<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>
143141

144142
### `fetcher.submit()`

docs/hooks/use-navigate.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ The `unstable_flushSync` option tells React Router DOM to wrap the initial state
9393

9494
<docs-warning>`unstable_flushSync` only works when using a data router, see [Picking a Router][picking-a-router]</docs-warning>
9595

96-
<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>
97-
9896
<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>
9997

10098
## `options.unstable_viewTransition`

docs/hooks/use-submit.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ Because submissions are navigations, the options may also contain the other navi
164164

165165
The `unstable_flushSync` option tells React Router DOM to wrap the initial state update for this submission in a [`ReactDOM.flushSync`][flush-sync] call instead of the default [`React.startTransition`][start-transition]. This allows you to perform synchronous DOM actions immediately after the update is flushed to the DOM.
166166

167-
<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>
168-
169167
<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>
170168

171169
[pickingarouter]: ../routers/picking-a-router

0 commit comments

Comments
 (0)