urlKeys
option support for serializers, after change in useQueryStates
(v1.20)
#672
-
Hey. Key remapping has become a great addition to the library; now we need to have similar functionality for the serializer to be able to generate regular |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ah good point, thanks ! (poor serializer, I always forget about it) Would you like to open a PR? |
Beta Was this translation helpful? Give feedback.
-
I've added a fix for this in #720.
You can try it here:
|
Beta Was this translation helpful? Give feedback.
I've added a fix for this in #720.
createSerializer
now accepts a second argument where you can specify bothclearOnDefault: false
(it still defaults totrue
to mirror useQueryState(s)' behaviour) and aurlKeys
map to shorten your query keys (same as for useQueryStates).You can try it here: