-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
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
Can't clear ArrayParam state when default value is not empty #248
Comments
Empty arrays are tricky since there isn't really any invertible options from URLSearchParams or even query-string. How would you encode them in the array and get them decoded? Consider this code
I'm not really sure there's anything obvious we can do in the library to circumvent this. That being said, if you |
Looks tricky but it works at least. Many thanks 🙏 |
When I have an
ArrayParam
state with a non-empty default array, I can't make it emptyhttps://codesandbox.io/s/gallant-shockley-w2yojs?file=/src/App.js
The text was updated successfully, but these errors were encountered: