Skip to content

Commit e76078f

Browse files
committed
Add note on start transition opt out
1 parent 508d667 commit e76078f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/upgrading/v6.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ You don't need to update anything unless you are using `React.lazy` _inside_ of
141141

142142
Using `React.lazy` inside of a component is incompatible with `React.useTransition` (or other code that makes promises inside of components). Move `React.lazy` to the module scope and stop making promises inside of components. This is not a limitation of React Router but rather incorrect usage of React.
143143

144+
<docs-info>We added a flag to opt-out of `React.startTransition` in v7 so you can use that to upgrade to v7 without adopting React transition-enabled navigations if needed. See the [transition docs][transitions] for more information.</docs-info>
145+
144146
### v7_fetcherPersist
145147

146148
<docs-warning>If you are not using a `<RouterProvider>` you can skip this</docs-warning>
@@ -377,3 +379,4 @@ Congratulations, you're now on v7!
377379
[react-flushsync]: https://react.dev/reference/react-dom/flushSync
378380
[response-json]: https://developer.mozilla.org/en-US/docs/Web/API/Response/json
379381
[data-util]: https://api.reactrouter.com/v7/functions/react-router.data.html
382+
[transitions]: ../explanation/react-transitions

0 commit comments

Comments
 (0)