-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
When an array has more than 21 items, it is parsed from a url string into an object, instead of array #324
Comments
This is the |
This is happening to me but with Any ideas? |
@samicodesit can you provide the exact code that you used with stringify? Filing it as a new issue would help. |
@ljharb — I can give some more info here. @samicodesit is hitting the same issue that I am. Although We just need an option to specify an Also, THANK YOU for this package. We are heavily using UPDATE: I just found that this was actually not caused by the @samicodesit you might be having the same issue? |
Hey, I am facing the same issue, but in my case I am not using |
This should be reopened. |
@alexmachina if you set Please file a new issue if you're still having trouble with the latest version of qs. |
Thanks! I solved it parsing with |
Following an error that array.includes is not a function, it turns out that when an array which is longer than 21 items is translated into a url query string (using qs.stringify), and than the url string is parsed (using qs.parse) it returns an object, not an array. This can obviously cause issues when you expect an array and it's methods.
The text was updated successfully, but these errors were encountered: