dioxus-std icon indicating copy to clipboard operation
dioxus-std copied to clipboard

unset key from local storage

Open itcreator opened this issue 1 year ago • 0 comments

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;

itcreator avatar Oct 24 '24 16:10 itcreator