leptos::reactive::prelude

Trait GetUntracked

Source
pub trait GetUntracked: DefinedAt {
    type Value;

    // Required method
    fn try_get_untracked(&self) -> Option<Self::Value>;

    // Provided method
    fn get_untracked(&self) -> Self::Value { ... }
}
Expand description

Clones the value of the signal, without tracking the value reactively.

Required Associated Types§

Source

type Value

The type of the value contained in the signal.

Required Methods§

Source

fn try_get_untracked(&self) -> Option<Self::Value>

Clones and returns the value of the signal, or None if the signal has already been disposed.

Provided Methods§

Source

fn get_untracked(&self) -> Self::Value

Clones and returns the value of the signal,

§Panics

Panics if you try to access a signal that has been disposed.

Implementations on Foreign Types§

Source§

impl<T> GetUntracked for Option<T>

Implementors§