operational-ui icon indicating copy to clipboard operation
operational-ui copied to clipboard

Add support for encoders and decoders on useURLState

Open TejasQ opened this issue 5 years ago • 0 comments

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.

TejasQ avatar Jul 16 '19 16:07 TejasQ