Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for encoders and decoders on useURLState #1142

Open
TejasQ opened this issue Jul 16, 2019 · 0 comments
Open

Add support for encoders and decoders on useURLState #1142

TejasQ opened this issue Jul 16, 2019 · 0 comments

Comments

@TejasQ
Copy link
Contributor

TejasQ commented Jul 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant