Trait leptos_reactive::SignalSetUntracked
source · pub trait SignalSetUntracked<T> {
// Required methods
fn set_untracked(&self, new_value: T);
fn try_set_untracked(&self, new_value: T) -> Option<T>;
}
Expand description
Trait implemented for all signal types which you can set
the inner
value, such as WriteSignal
and RwSignal
, which allows setting
the inner value without causing effects which depend on the signal
from being run.
Required Methods§
sourcefn set_untracked(&self, new_value: T)
fn set_untracked(&self, new_value: T)
Sets the signal’s value without notifying dependents.
sourcefn try_set_untracked(&self, new_value: T) -> Option<T>
fn try_set_untracked(&self, new_value: T) -> Option<T>
Attempts to set the signal if it’s still valid. Returns None
if the signal was set, [Some(T)
] otherwise.