-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
query values should be casted into strings #2131
Comments
This is something that could break existing application, so we may have to wait for a major release. |
😢 Maybe we can add a coercion option for extraQuery? |
I have changed my mind regarding not casting (#2131 (comment)) |
* fix(query): Fix query props should be casted into string (fix #2131) * Apply suggestions from code review * Update test/unit/specs/query.spec.js Co-authored-by: mohamed.gad <[email protected]> Co-authored-by: Eduardo San Martin Morote <[email protected]>
Version
3.0.1
Reproduction link
http://jsfiddle.net/L7hscd8h/6976/
Steps to reproduce
click 'a'
query
z
added as Number inbeforeRouteEnter
typeof query.z
is NumberWhat is expected?
query props should be String
What is actually happening?
no stringify applied on programmatic navigation (
next
,this.$router.push
etc.)The text was updated successfully, but these errors were encountered: