Open bravelincy opened 5 years ago
Not sure what is causing this, but only happing when manually changing the url in hash mode. It doesn't happen with regular navigation
@posva I think because the url manually changing in the omnibox forcibly pushed a new history state by the browser's mechanism, when the history back, it always encounter the manually pushed state
, and it get stuck
Version
3.0.2
Reproduction link
https://codesandbox.io/s/l9omkjv939
Steps to reproduce
/?animal=dog
, and theanimal
field only acceptdot
orcat
dog
toduck
, or via back button, it triggerednext(false)
for prevent the url change insidebeforeRouteUpdate
next(false)
ornext(error)
pushed a new location history, the previous record is/?animal=duck
and current record is/?animal=dog
What is expected?
I don't know... how can I handle this scenario?
What is actually happening?
Can't go back via back button after called next(false/error)