Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app that has some path parameters that are derived from user-generated data, and I therefore need to URI encode them (since they'll likely include special characters like spaces and apostrophes). I noticed, however, that
generatePath
does not encode the parameters that I pass it, unlike if I were to use the browser's nativeURL
constructor. That seems a little odd, but it made me wonder what the community's sense of the best practice is here. Should I wrapgeneratePath
(anduseParams
??) with my own wrapper function to do the encoding/decoding? I can't see a reason why I would ever not want the path to be encoded.Beta Was this translation helpful? Give feedback.
All reactions