Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Integer query props should be unsettable #2

Open
mirekys opened this issue May 15, 2020 · 1 comment
Open

Integer query props should be unsettable #2

mirekys opened this issue May 15, 2020 · 1 comment
Assignees

Comments

@mirekys
Copy link
Member

mirekys commented May 15, 2020

Currently there is no way of programatically unsetting an integer type prop from query once it is set in URL.

  • setting it to null sets 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)
@fedeisas
Copy link

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()}}">...

@mirekys mirekys modified the milestone: Sprint #3 Jul 14, 2020
mesemus added a commit that referenced this issue Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants