leptos_use::storage

Function use_session_storage_with_options

Source
pub fn use_session_storage_with_options<T, C>(
    key: impl AsRef<str>,
    options: UseStorageOptions<T, <C as Encoder<T>>::Error, <C as Decoder<T>>::Error>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone)
where T: Clone + PartialEq, C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
Expand description

Accepts UseStorageOptions. See use_session_storage for details.