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
Zero is a falsy value in JavaScript, and I would expect it to parse to a false value, so this is expected.
0 -> false
1 -> true
Also relevant values that should (and do) map to false:
'' (empty string)
NaN
null
undefined
Edit: ah my bad, I didn't see you talked about the array serializer. Yes, there it makes sense to only filter out null values (undefined should not be returned by parse).
This
Boolean
filter is filtering out0
from the list. It should probably only filter outnull
andundefined
values:https://github.com/47ng/next-usequerystate/blob/next/src/defs.ts#L200
The text was updated successfully, but these errors were encountered: