vue-query-synchronizer
vue-query-synchronizer copied to clipboard
Integer query props should be unsettable
Currently there is no way of programatically unsetting an integer type prop from query once it is set in URL.
- setting it to
nullsets the property to default value (0), which is not always desirable - removing it through
query._remove()results in:
TypeError: this[prop].includes is not a function"
at Object.queryObject._remove (vue-query-synchronizer.esm.js?a9ce:257)
I just stumbled with this one too while trying to pass IDs on query strings. My current solution is to declare everything as string on the router, but also when using creating links I need to cast the query parameters as a string (ie <router-link :to="{name: 'foo.edit', params: {id: object.id.toString()}}">...