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
In order to properly implement the blocking capabilities in react-router 6 go needs to also do the same allowTx() processing as the other two actions. This is necessary because it may be important for an app to not to allow the browser navigation to move forward/backward based on some internal condition
It is also possible that the handlePop code isn't recognizing the registered blockers. Since doing navigate.go() using RR6 with with a custom blocker doesn't trigger the block handler... see this comment in RR6 issue for details. Or perhaps the go() code is not officially triggering the handlePop callback?
The text was updated successfully, but these errors were encountered:
heath-freenome
changed the title
go() does NOT support allowTx()
doing history.go() does NOT trigger a blocker callback handler
Jan 25, 2022
In order to properly implement the blocking capabilities in
react-router
6 go needs to also do the sameallowTx()
processing as the other two actions. This is necessary because it may be important for an app to not to allow the browser navigation to move forward/backward based on some internal conditionIt is also possible that the
handlePop
code isn't recognizing the registered blockers. Since doingnavigate.go()
using RR6 with with a custom blocker doesn't trigger the block handler... see this comment in RR6 issue for details. Or perhaps thego()
code is not officially triggering thehandlePop
callback?The text was updated successfully, but these errors were encountered: