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
However, say instead I would like to encode this object as:
?zero=tagA&two=tagB_tagC
Thus the two things I'm trying to do are:
Apply a transformation to the key in the useQueryParams object upon encoding (0 -> "zero").
Omit empty array params from the encoded string result.
without modifying the actual state definition (as I need numerical object keys and the empty lists for other implementation reasons).
Assuming this is possible, would really appreciate any advice or examples! 😃
The text was updated successfully, but these errors were encountered:
nwbhatia
changed the title
How to apply transformation to useQueryParams keys and omit empty ArrayParams upon encoding?
Transform useQueryParams keys + omit empty ArrayParams upon encoding?
Apr 22, 2022
nwbhatia
changed the title
Transform useQueryParams keys + omit empty ArrayParams upon encoding?
Transform useQueryParams keys + omit empty ArrayParams
Apr 22, 2022
Hi, can someone help me understand if it's possible to do the following two things?
My current implementation is as follows:
Now, given an example, this encodes to:
However, say instead I would like to encode this object as:
Thus the two things I'm trying to do are:
without modifying the actual state definition (as I need numerical object keys and the empty lists for other implementation reasons).
Assuming this is possible, would really appreciate any advice or examples! 😃
The text was updated successfully, but these errors were encountered: