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
I agree, and the fact that it transforms null to an actuall string "null" is a bug. Fixed all of this in querystringify@2.1.0. Thanks for the issue report <3
The way this library deals with some falsey values is different from the other competing libraries.
https://repl.it/@heygrady/querystring
Ideally:
?a
would parse as{ a: null }
(like query-string does){ a: null }
would stringify toa
(like query-string does){ a: undefined }
would stringify to an empty string (like all others do)null
to "null" andundefined
to "undefined"null
that enables props to not have an equals sign (which is nice for aesthetics and distinct from empty string)a=null
anda=undefined
will cause issues in other librariesThis library is nice because it's small. Good work!
The text was updated successfully, but these errors were encountered: