jeroenpelgrims / vue-use-query-param

Use url query parameter like regular refs in Vue, in a typesafe way.
9 stars 1 forks source link

String array param with single value is parsed as undefined #15

Closed jeroenpelgrims closed 6 months ago

jeroenpelgrims commented 6 months ago

If we have a param defined as const foo = arrayParam(stringParam()) and the query string is ?foo=, then the value is being parsed as being undefined. While there is a value set. The array contains 1 value, and that value is an empty string. The parsing should be corrected to reflect this.