Trait leptos::SignalUpdateUntracked
source · pub trait SignalUpdateUntracked<T> {
// Required methods
fn update_untracked(&self, f: impl FnOnce(&mut T));
fn try_update_untracked<O>(&self, f: impl FnOnce(&mut T) -> O) -> Option<O>;
}
Expand description
This trait allows updating the signals value without causing dependant effects to run.
Required Methods§
sourcefn update_untracked(&self, f: impl FnOnce(&mut T))
fn update_untracked(&self, f: impl FnOnce(&mut T))
Runs the provided closure with a mutable reference to the current value without notifying dependents.
sourcefn try_update_untracked<O>(&self, f: impl FnOnce(&mut T) -> O) -> Option<O>
fn try_update_untracked<O>(&self, f: impl FnOnce(&mut T) -> O) -> Option<O>
Runs the provided closure with a mutable reference to the current value without notifying dependents and returns the value the closure returned.
Object Safety§
This trait is not object safe.