Skip to main content

effect

Function effect 

Source
pub fn effect(callback: Function) -> Result<(), JsValue>
Expand description

Run callback immediately as a reactive effect. Any Signal::get calls inside the callback register a subscription; the callback re-runs whenever those signals change.