leptos-use/src/storage/use_local_storage.rs

21 lines
548 B
Rust
Raw Normal View History

2023-06-10 01:52:21 +01:00
use crate::storage::shared::{use_specific_storage, UseSpecificStorageOptions};
use crate::storage::{use_storage_with_options, StorageType};
use leptos::*;
use paste::paste;
use serde::{Deserialize, Serialize};
use_specific_storage!(
/// Reactive [LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)
///
/// ## Usage
///
/// Please refer to [`use_storage`]
///
/// ## See also
///
/// * [`use_storage`]
/// * [`use_session_storage`]
local
/// [`use_local_storage`]
);