Replies: 2 comments 2 replies
|
I don't think it has anything to do with this suggestion. |
0 replies
|
You could do this with a helper As the developer, you have control over the params in your route definitions... But what happens when someone adds a query with the same name? Which one has priority, how would they get merged, how would you distinguish where each one came from? These are all issues that don't exist if you get them explicitly from either |
2 replies
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.
Hey
I'm attempting to get the query-string parameters from an API endpoint, but I've noticed that they are not returned in
paramsprovided by an endpoint handler:Currently to get around this we have to go into the
url.searchParamsand useget:I'd like to see
url.searchParamsmerged intoparams. MDN suggest that there's agetAllmethod which could make merging easy.Thoughts?
If not how would I go about implementing a global-middleware so that it could be done in user land rather than by the framework?
All reactions