Skip to content

prompt or block navigation? #297

Answered by molefrog
thom-nic asked this question in Q&A
Mar 31, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi! It's not supported atm, but here is a short example of how it can be achieved:
https://codesandbox.io/s/wouter-interruptible-transition-using-router-6o7lx?file=/src/index.js

The beauty of wouter is interchangeable location hook, and it is an extension point to cover a lot of use cases similar to this one.

Replies: 1 comment 2 replies

Comment options

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

@molefrog
Comment options

Answer selected by molefrog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants