Closed mergebandit closed 6 years ago
Thank you, good catch! We should do the same for undefined
. And maybe instead of an empty string, remove the key. What do you think?
Hey - apologies for delayed response!
Yeah I had undefined
in my first near-PR and I removed it. I can't recall why, nor can I think of a good reason to do so.
Added a commit which filters the toQueryString
method for values that are null
or undefined
.
The only question I have is in my test, the as
property returns /a/b?
- I could add logic to the return of the Route.getAs
method to not include the ?
, but wasn't sure if that was necessary.
Thank you, that's fine!
Published in v1.1.1
If you have an object with the following properties:
And then use that object in the Link params, like so:
The resultant query object passed to components is the following:
as a result of
encodeURIComponent(null)