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
Which I guess is reasonable (though, aside, the decoder API is not well-documented and has a lot of tricky subtleties like this). I wanted the last branch to just "do the default thing", but unfortunately that option is not available to me, so I'm stuck choosing between explicitly importing the private utils file and hoping it doesn't change or move, or re-implementing the default and hoping it doesn't change (which it looks like it might).
Providing a default implementation, even for this simple function, would make this use-case much more robust.
The text was updated successfully, but these errors were encountered:
One possibility might be changing the encoder/decoder calls to pass the default encoder/decoder as the second argument to the function - although that might be breaking if anyone's checking arguments.length.
I ran into an issue recently where I wanted to parse out boolean values to a proper boolean type:
Turns out this breaks parsing of URI-encoded array types:
Which I guess is reasonable (though, aside, the
decoder
API is not well-documented and has a lot of tricky subtleties like this). I wanted the last branch to just "do the default thing", but unfortunately that option is not available to me, so I'm stuck choosing between explicitly importing the privateutils
file and hoping it doesn't change or move, or re-implementing the default and hoping it doesn't change (which it looks like it might).Providing a default implementation, even for this simple function, would make this use-case much more robust.
The text was updated successfully, but these errors were encountered: