I passed in searchParams option as null and got back an error that looks like this:
TypeError: Expected value which is `predicate returns truthy for any value`, received value of type `Array`.
It took some time to figure out why I was getting this error, I had to look at the callstack of the error figure out what was wrong.
Would it be possible to add to the error message saying that the option searchParams
(or another option) is the wrong type? It would be much clearer and help with debugging. Another option is to accept null for options, which seems reasonable to me.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too