-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS doesn't support parsing nested objects in query parameters #2530
Comments
Yes. This is something we should work on. Feel free to send us a PR. |
I think @chrismatheson has a PR, what do you all think? |
See #2605 (comment) |
im a little confused, @arunoda 's comments seem to imply that the feature is something that is desirable, but the issue has been closed? Would an implementation that uses something more lightweight than the |
@chrismatheson as @timneutkens mentioned size of the |
Expected Behavior
Expected at least nested objects be supported and parsed correctly from query
Current Behavior
It takes the whole thing as a key, instead of creating an nested object
Doesn't matter the format, none of them works
/?nested[key]=value
or
/?nested.key=value
Steps to Reproduce (for bugs)
Context
I can't pass nested object over arbitrarily if I am not using
<Link />
component, actually I'm not sure if<Link />
would work with nested object since it is using npm 'url' which does not supported nested object parsing...Btw, I'm currently using https://github.com/ljharb/qs for parsing atm, I hope this saves you all time if you are looking for alternatives.
Your Environment
The text was updated successfully, but these errors were encountered: