Skip to content
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

make a copy when query param value is an array (fix #1182) #1291

Merged
merged 2 commits into from
Apr 6, 2017

Conversation

javoski
Copy link
Member

@javoski javoski commented Mar 30, 2017

fix #1182
Don't using the object reference as query value directly.

}
return parsedQuery
} else {
return extraQuery
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worries me that deleting this part didn't break the test. @fnlctrl Do you have an idea about this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already an empty value check in parseQuery function.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but in the other case we were skipping the whole parseQuery and for loop and returning right away the extraQuery instead

@yyx990803 yyx990803 merged commit 702f901 into vuejs:dev Apr 6, 2017
@javoski javoski deleted the query-ref branch April 20, 2017 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$router.push({query: this.myarray}) not updating the URL
3 participants