Skip to content

Commit

Permalink
Remove duped flushSync warning from linked React docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 authored and jonathanpruvost committed Nov 28, 2023
1 parent a9e9513 commit 087a4aa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docs/hooks/use-fetcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ If you find yourself calling this function inside of click handlers, you can pro

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.

<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>

<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>

### `fetcher.submit()`
Expand Down
2 changes: 0 additions & 2 deletions docs/hooks/use-navigate.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ The `unstable_flushSync` option tells React Router DOM to wrap the initial state

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

<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>

<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>

## `options.unstable_viewTransition`
Expand Down
2 changes: 0 additions & 2 deletions docs/hooks/use-submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ Because submissions are navigations, the options may also contain the other navi

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.

<docs-warning>`ReactDOM.flushSync` de-optimizes React and can hurt the performance of your app.</docs-warning>

<docs-warning>Please note that this API is marked unstable and may be subject to breaking changes without a major release</docs-warning>

[pickingarouter]: ../routers/picking-a-router
Expand Down

0 comments on commit 087a4aa

Please sign in to comment.