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
@Nikodermus@ZacharyRSmith I am seeing the same, I think it is only when you push to '/' - props.history.push('/'), at least this is the only route I am seeing this behaviour.
If I do props.history.push('/'test) there is no problem. @Nikodermus can you check if it works if you don't use '/' but instead navigate to a different route?
"react-router-navigation-prompt": "^1.8.5",
BUG
Redirection made through history.push() is not taken in account for the prompt to be triggered and allows redirection in the end.
Steps to reproduce:
withRouter
HOC)when={true}
onClick={()=> props.history.push('/')}
Expected behavior:
Prompt should be triggered even when the router change is made with the
history.push
function.The button click resolves a redux action which then triggers the history.push(), maybe it has to do?
Additional Info
The text was updated successfully, but these errors were encountered: