Skip to content

Commit b083600

Browse files
committed
Add note about useBlocker/usePrompt to v5 migration guide
1 parent 462bb71 commit b083600

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/upgrading/v5.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,13 @@ const match = matchPath(
947947

948948
`<Prompt>` from v5 (along with `usePrompt` and `useBlocker` from the v6 betas) are not included in the current released version of v6. We decided we'd rather ship with what we have than take even more time to nail down a feature that isn't fully baked. We will absolutely be working on adding this back in to v6 at some point in the near future, but not for our first stable release of 6.x.
949949

950+
<docs-info>We have since added implementations for [`useBlocker`][useblocker] and [`unstable_usePrompt`][useprompt] that you can use instead of `<Prompt>`</docs-info>
951+
950952
## What did we miss?
951953

952954
Despite our best attempts at being thorough, it's very likely that we missed something. If you follow this upgrade guide and find that to be the case, please let us know. We are happy to help you figure out what to do with your v5 code to be able to upgrade and take advantage of all of the cool stuff in v6.
953955

954956
Good luck 🤘
957+
958+
[useblocker]: ../hooks/use-blocker
959+
[useprompt]: ../hooks/use-prompt

0 commit comments

Comments
 (0)