-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
fixed on 4.xThis issue has been already fixed on the v4 but exists in v3This issue has been already fixed on the v4 but exists in v3
Description
Version
3.0.2
Reproduction link
https://codesandbox.io/s/l9omkjv939
Steps to reproduce
- Let's say the page url now is
/?animal=dog
, and theanimal
field only acceptdot
orcat
- When a user manually change the
dog
toduck
, or via back button, it triggerednext(false)
for prevent the url change insidebeforeRouteUpdate
- Due to the
next(false)
ornext(error)
pushed a new location history, the previous record is/?animal=duck
and current record is/?animal=dog
- Then we click the browser's back button, it turn to the step 2. and I can't go back to the earlier state!
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)
Metadata
Metadata
Assignees
Labels
fixed on 4.xThis issue has been already fixed on the v4 but exists in v3This issue has been already fixed on the v4 but exists in v3