Skip to content

unset key from local storage #61

@itcreator

Description

@itcreator

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions