You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we can't remove a query param from the original path using the query object given in withQuery without rebuild the entire URL.
Proposed solution
Based on the Vue Router behaviour, if you send a undefined value to a query parameter, it removes from the path; if you want to keep the param, but send it without value, then you can use a null value. This represent a breaking change, but it has the most sense for this scenario, because the undefined value should represent a value that does not exists, not "an empty value": for a empty value, we have the null value.
Currently, we can't remove a query param from the original path using the query object given in
withQuery
without rebuild the entire URL.Proposed solution
Based on the Vue Router behaviour, if you send a
undefined
value to a query parameter, it removes from the path; if you want to keep the param, but send it without value, then you can use anull
value. This represent a breaking change, but it has the most sense for this scenario, because theundefined
value should represent a value that does not exists, not "an empty value": for a empty value, we have thenull
value.Current behaviour:
For param = undefined
For param = null
Proposed behaviour:
For param = undefined
For param = null
The text was updated successfully, but these errors were encountered: