You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we need to respond synchronously to block the transition. We can't delay it for an async request to resolve. Also, this will lead to a bad UX, as there would be nothing presented to the user to represent progress or a loading state while the request resolves. It would be better to block this earlier in the lifecycle, before you navigate.
Hi, I use react-router-dom v4.2.2
Prompt takes an argument "message" and it can be a function but if this function is async it doesn't work. Why? Some times it is very useful.
Are you plan to add this possibility?
I need it for data validation with a request to the backend. If validation is successful I can allow the transition from the current page.
Thanks for your contribution!
The text was updated successfully, but these errors were encountered: