You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTK Query already exposes the option to provide a custom paramsSerializer, which you can use to get the desired behaviour.
If one isn't provided, we just pass the object to URLSearchParams and let it do the parsing.
I don't think it makes sense for us to add our own support for this convention, since it's specific to a few APIs and there are already plenty of libraries you can use to do it (such as querystring like the SO comment you linked says)
Hi team,
if I pass array (var array = ['v1', 'v2']) into params of rtk get query
it will send it in query this way:
?array=v1,v2
,but I need to send it as
?array[]=v1&array[]=v2
is there a plan to add array parse option?
to make it parse as
?array[]=v1&array[]=v2
thanks
The text was updated successfully, but these errors were encountered: