Expected at least nested objects be supported and parsed correctly from query
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
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.
| Tech | Version |
|---------|---------|
| next | 2.4.6 |
| node | 8.1.3 |
| OS | macOS Sierra |
| browser | chrome |
| etc | |
Yes. This is something we should work on.
Will do this after 3.0.
Feel free to send us a PR.
I think @chrismatheson has a PR, what do you all think?
See https://github.com/zeit/next.js/pull/2605#issuecomment-343774156
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 qs lib be and adequate solution?
@chrismatheson as @timneutkens mentioned size of the qs is the problem here.
We are open to use a smaller well maintained alternative (if exists)
Most helpful comment
Yes. This is something we should work on.
Will do this after 3.0.
Feel free to send us a PR.