Skip to content

[Bug]: navigate with unstable_usePrompt, causing Invalid blocker state transition: unblocked -> proceeding error. #10489

Closed Answered by brophdawg11
woochanleee asked this question in Q&A
Discussion options

You must be logged in to vote

Per the thread above, this was a bit of an add use-case and can be fixed with slight changes to the application logic. We did merge #10687 which will avoid the thrown exception - that should be released in 6.14.3 since we already started the release branch for 6.14.2 before this was merged.

But it's worth noting that this still does not behave as the original issue would have expected. Unblocking and navigating in the same event loop will still trigger the prompt after the fix. There are app-land solutions using flushSync/useState/setTimeout in the threads above.

Replies: 5 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@brophdawg11
Comment options

@brophdawg11
Comment options

@woochanleee
Comment options

@louis-young
Comment options

@woochanleee
Comment options

Comment options

You must be logged in to vote
8 replies
@brophdawg11
Comment options

@brophdawg11
Comment options

@louis-young
Comment options

@brophdawg11
Comment options

@louis-young
Comment options

Comment options

You must be logged in to vote
2 replies
@brophdawg11
Comment options

@leonpatry
Comment options

Answer selected by woochanleee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug awaiting release This issue have been fixed and will be released soon
6 participants
Converted from issue

This discussion was converted from issue #10485 on May 12, 2023 21:44.