DioxusLabs / DioxusLabs/sdk

unset key from local storage

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
302
Forks
58
PR merge metrics
No merged PRs in 30d

Description

Currently, I deal with local storage like that:

```
let mut local_storage_token = use_synced_storage::>("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;`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.