Axios query params seems to not support toJSON from version 1.0.0 #5527
Unanswered
tusharnaresh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Till version 0.27.2, on passing params in the format :
axios .get(
url, { params: { q: { toJSON: () => ({ ...params, limit: 500, cursor: cursor }), }, }, headers: { Authorization:
token, }, })
This used to pass params in encoded format. But from verison 1.0.0 the above doesn't work .
Beta Was this translation helpful? Give feedback.
All reactions