| Crates.io | dioxus_storage |
| lib.rs | dioxus_storage |
| version | 0.1.0-alpha.1 |
| created_at | 2023-03-02 19:03:00.212117+00 |
| updated_at | 2025-04-18 23:47:27.784198+00 |
| description | Local and persistent storage utilities for Dioxus. |
| homepage | https://dioxuslabs.com |
| repository | https://github.com/DioxusLabs/sdk/ |
| max_upload_size | |
| id | 799105 |
| size | 93,333 |
Local and persistent storage utilities for Dioxus.
Add dioxus-storage to your Cargo.toml:
[dependencies]
dioxus_storage = "0.1"
Example:
use dioxus_storage::use_persistent;
use dioxus::prelude::*;
#[component]
fn App() -> Element {
let mut num = use_persistent("count", || 0);
rsx! {
div {
button {
onclick: move |_| {
*num.write() += 1;
},
"Increment"
}
div {
"{*num.read()}"
}
}
}
}
This table represents the compatibility between this crate and Dioxus versions. The crate version supports a Dioxus version up until the next crate version in the table.
E.g. if crate version 0.1 supported Dioxus 0.6 and crate version 0.4 supported Dioxus 0.7, crate versions 0.1, 0.2, and 0.3 would support Dioxus 0.6.
| Crate Version | Dioxus Version |
|---|---|
| 0.1 | 0.6 |