We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi – first of all, thanks for your work on this library.
I ran into what I believe is a bug today and would like to understand if there is any way to work around it.
Given the following param definition:
const [urlParams, setUrlParams] = useQueryParams({ foo: ArrayParam, });
Expected behaviour:
foo
?foo=bar&foo=
['bar', '']
?foo=
['']
Actual behaviour:
[]
The text was updated successfully, but these errors were encountered:
It seems like the getEncodedValueArray function could be modified, although I might be blind to potential side effects:
getEncodedValueArray
function getEncodedValueArray( input: string | (string | null)[] | null | undefined ): (string | null)[] | null | undefined { if (input == null) { return input; } return input instanceof Array ? input : input === '' ? [''] : [input]; // Empty string no longer returns empty array }
Sorry, something went wrong.
No branches or pull requests
Hi – first of all, thanks for your work on this library.
I ran into what I believe is a bug today and would like to understand if there is any way to work around it.
Given the following param definition:
Expected behaviour:
foo
value?foo=bar&foo=
['bar', '']
?foo=
['']
Actual behaviour:
foo
value?foo=bar&foo=
['bar', '']
?foo=
[]
The text was updated successfully, but these errors were encountered: