You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 setState(['']) it will be decoded as [] in your sandbox and encoded in the URL as ?foo=
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: