leptos_use::storage

Function use_storage_with_options

Source
pub fn use_storage_with_options<T, C>(
    storage_type: StorageType,
    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

Version of use_storage that accepts UseStorageOptions.