-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
[9.5.2] The query string doesn't cleanup undefined value #16147
Comments
Keep in mind that in {
param1: "ok",
param2: ""
} and not {
param1: "ok"
} edit: In fact, been testing values for query from pre vs post #15378. and the results are quite different, i.e. router.push({
pathname: "/query",
query: {
param1: '',
param2: undefined,
param3: null,
param4: 0,
param5: false,
param6: [],
param7: {},
param8: NaN,
param9: new Date(1234),
param10: /hello/
}
}) pre #15378 this results in: {
"param1": "",
"param2": "",
"param3": "",
"param4": "0",
"param5": "false",
"param7": "",
"param8": "",
"param9": "",
"param10": ""
} post #15378 we get: {
"param1": "",
"param2": "undefined",
"param3": "null",
"param4": "0",
"param5": "false",
"param7": "[object Object]",
"param8": "NaN",
"param9": "Thu Jan 01 1970 01:00:01 GMT+0100 (Central European Standard Time)",
"param10": "/hello/"
} looks like these only agree on |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
Navigating router via
push
:Result
In the
page-a
: Theparam2
is anundefined
string value.Expected behavior
Result
The
param2
should be anundefined
value.System information
Additional context
#15378
The text was updated successfully, but these errors were encountered: