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
We upgraded to History 5 and we found history.replace was not able to update the history. I dug into the source code and this is what I found.
In v.5, when history.replace is called here, it would check allowTx. If my understanding is correct, allowTx would always return false if there’s any functions push to blockers.
This is a behavioral change from v.4, in which the replace function here would still update history.enries, if the result from blocker function here is not false.
Please correct me if I got anything wrong, but when I commented out any callback we push to blockers via history.block, the app indeed loads as expected. Is this an intentional change? I don't think I found it in documentation or in the undocumented one.
The text was updated successfully, but these errors were encountered:
We upgraded to History 5 and we found
history.replace
was not able to update thehistory
. I dug into the source code and this is what I found.In v.5, when
history.replace
is called here, it would check allowTx. If my understanding is correct,allowTx
would always return false if there’s any functions push toblockers
.This is a behavioral change from v.4, in which the
replace
function here would still updatehistory.enries
, if the result fromblocker
function here is not false.Please correct me if I got anything wrong, but when I commented out any callback we push to
blockers
viahistory.block
, the app indeed loads as expected. Is this an intentional change? I don't think I found it in documentation or in the undocumented one.The text was updated successfully, but these errors were encountered: