-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beforeEnter fire twice after async next
call on Android 4.4
#1508
Comments
next
call on Android 4.4next
call used HTML5 mode on Android 4.4
next
call used HTML5 mode on Android 4.4next
call on Android 4.4
A bit like #725 |
Finally, have time to dig out what's going on. In MDN. It says.
There is also a chromium bug about this. The For my case, async
@yyx990803 @posva Do you have time to view this issue? I will continue to find a way to solve this problem in tomorrow evening. |
Hello, Thanks a lot for digging it and sharing what you found. I don't have a way to test it so I never tested it 😅. |
I have installed a Android 4.4 emulator and reproduced it, Both |
I found in my Android 4.4 emulator the <!DOCTYPE html>
<html>
<head>
<title>Vue Router Example</title>
<meta charset="utf-8">
<script>
window.addEventListener('popstate', function (e) {
alert('Will be fired automatically in Android 4.4')
});
</script>
</head>
<body>
hello world
</body>
</html> |
Yes @Jinjiang . In this comment. It's the right behavior by designed. And then it changed.
|
Gotcha. I am still working on that. |
Now this bug can easily reproduced by just dispatching another https://jsfiddle.net/bLw2tkv1/11/ p.s. Debugging with Android emulator is really a hard thing 😭 |
@Jinjiang that's worked. 👍 I try to check the |
Version
2.5.3
Reproduction link
https://jsfiddle.net/bLw2tkv1/8/
Steps to reproduce
Android 4.4.
HTML5 mode.
Use async
next
inbeforeEach
.What is expected?
Enter the
global beforeEach
andpage beforeEach
once.What is actually happening?
Enter the
global beforeEach
andpage beforeEach
both twice.Android 5.0 (include) is correct.
The text was updated successfully, but these errors were encountered: