pub mod use_local_storage {
use ::leptos_use_storage::*;
use codee::{Decoder, Encoder};
use leptos::prelude::*;
use leptos::reactive::wrappers::read::Signal;
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_local_storage`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_local_storage.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_local_storage` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_local_storage` instead."
)]
#[inline(always)]
pub fn use_local_storage<T, C>(
key: impl Into<Signal<String>>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Clone + Default + PartialEq + Send + Sync + 'static,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_local_storage::<T, C>(key)
}
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_local_storage_with_options`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_local_storage_with_options.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_local_storage_with_options` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_local_storage_with_options` instead."
)]
#[inline(always)]
pub fn use_local_storage_with_options<T, C>(
key: impl Into<Signal<String>>,
options: UseStorageOptions<
T,
<C as Encoder<T>>::Error,
<C as Decoder<T>>::Error,
impl CallFilter,
>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Clone + PartialEq + Send + Sync,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_local_storage_with_options::<T, C>(key, options)
}
}
pub mod use_session_storage {
use ::leptos_use_storage::*;
use codee::{Decoder, Encoder};
use leptos::prelude::*;
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_session_storage`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_session_storage.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_session_storage` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_session_storage` instead."
)]
#[inline(always)]
pub fn use_session_storage<T, C>(
key: impl Into<Signal<String>>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Clone + Default + PartialEq + Send + Sync + 'static,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_session_storage::<T, C>(key)
}
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_session_storage_with_options`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_session_storage_with_options.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_session_storage_with_options` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_session_storage_with_options` instead."
)]
#[inline(always)]
pub fn use_session_storage_with_options<T, C>(
key: impl Into<Signal<String>>,
options: UseStorageOptions<
T,
<C as Encoder<T>>::Error,
<C as Decoder<T>>::Error,
impl CallFilter,
>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Clone + PartialEq + Send + Sync,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_session_storage_with_options::<T, C>(key, options)
}
}
pub mod use_storage {
use ::leptos_use_storage::*;
use codee::{Decoder, Encoder};
use leptos::prelude::*;
use leptos::reactive::wrappers::read::Signal;
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_storage`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_storage.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_storage` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_storage` instead."
)]
#[inline(always)]
pub fn use_storage<T, C>(
storage_type: StorageType,
key: impl Into<Signal<String>>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Default + Clone + PartialEq + Send + Sync + 'static,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_storage::<T, C>(storage_type, key)
}
#[doc = " Deprecated forwarding wrapper of [`leptos_use_storage::use_storage_with_options`](https://docs.rs/leptos-use-storage/latest/leptos_use_storage/fn.use_storage_with_options.html).\n\n Add the `leptos-use-storage` crate to your dependencies and use `leptos_use_storage::use_storage_with_options` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-storage` to your dependencies and use `leptos_use_storage::use_storage_with_options` instead."
)]
#[inline(always)]
pub fn use_storage_with_options<T, C>(
storage_type: StorageType,
key: impl Into<Signal<String>>,
options: UseStorageOptions<
T,
<C as Encoder<T>>::Error,
<C as Decoder<T>>::Error,
impl CallFilter,
>,
) -> (Signal<T>, WriteSignal<T>, impl Fn() + Clone + Send + Sync)
where
T: Clone + PartialEq + Send + Sync,
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
{
::leptos_use_storage::use_storage_with_options::<T, C>(storage_type, key, options)
}
}