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

uistate hash, similar to history.state, is easy to clear #7

Open
tbondwilkinson opened this issue Jul 31, 2020 · 1 comment
Open

uistate hash, similar to history.state, is easy to clear #7

tbondwilkinson opened this issue Jul 31, 2020 · 1 comment

Comments

@tbondwilkinson
Copy link
Collaborator

The current API proposal for uistate hash portion serializes as a string, and the API makes it easy to accidentally overwrite an existing value.

A better API would provide scoping so that other pieces of the page could update the hash without knowing about existing uistate.

@dvoytenko
Copy link
Contributor

Agreed. In this case it'd be a requirement since, unlike :~:text=, it's more likely to have :~:uistate= and fragment at the same time.

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

No branches or pull requests

2 participants