operational-ui
operational-ui copied to clipboard
Add support for encoders and decoders on useURLState
On useURLState, we often want to encodeURIComponent
and decodeURIcomponent
to work with formatted strings.
For example, if I useURLState
to persist a tab named Tables (123)
, then I want to be able to:
- encode it and store an URL-encoded version in the URL
- decode it and return it to a consumer React function component.
Currently, it does not work this way.