leptos-use/src/storage/use_session_storage.rs

21 lines
554 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 [SessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)
///
/// ## Usage
///
/// Please refer to [`use_storage`]
///
/// ## See also
///
/// * [`use_storage`]
/// * [`use_local_storage`]
session
/// [`use_session_storage`]
);