-
-
Notifications
You must be signed in to change notification settings - Fork 5k
[bug] wrong condition of current.matched
in src/util/location.js#27
#1169
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
Comments
It's perfectly fine to put an array inside |
current.matched can be [] |
It's guaranteed to be not emtpy. Please provide an actual reproduction if you believe there's a bug. |
@fnlctrl There's probably something wrong with that check, it may be unnecessary because in the flow types it's always an array, it cannot be absent. So we're probably missing a little improvement either in the types or in the codition there |
Here is a stacktrace recorded by sentry: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] |
Again, please provide a reproduction, thanks! |
This line https://github.com/vuejs/vue-router/blob/dev/src/util/location.js#L27
current.matched
is an Array, so this condition should beThe text was updated successfully, but these errors were encountered: