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

unset key from local storage #61

Open
itcreator opened this issue Oct 24, 2024 · 0 comments
Open

unset key from local storage #61

itcreator opened this issue Oct 24, 2024 · 0 comments

Comments

@itcreator
Copy link

itcreator commented Oct 24, 2024

Currently, I deal with local storage like that:

let mut local_storage_token =  use_synced_storage::<LocalStorage, Option<String>>("x_auth_token".to_string(), || None);


*local_storage_token.write() = None;

As a result, the key exists in local storage (value None).

It would be great to have some alternative for *local_storage_token.write() = None;

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

1 participant