Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid blocker state transition: unblocked -> proceeding #168

Closed
Raflos10 opened this issue Nov 21, 2024 · 2 comments
Closed

Invalid blocker state transition: unblocked -> proceeding #168

Raflos10 opened this issue Nov 21, 2024 · 2 comments

Comments

@Raflos10
Copy link

Raflos10 commented Nov 21, 2024

Dependency versions:

"react-router-dom": "^6.28.0",
    "react-router-prompt": "^0.7.1"

After onConfirm is called, this error is thrown:
Invalid blocker state transition: unblocked -> proceeding
I am using createBrowserRouter and createRoutesFromElements

Copy link

Hey, @Raflos10. Thank you so much for taking the time to point this out

@Raflos10
Copy link
Author

Raflos10 commented Dec 2, 2024

My fault. I was calling onCancel after already calling onConfirm.

@Raflos10 Raflos10 closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant