Function dioxus_signals::use_effect

source ·
pub fn use_effect(cx: &ScopeState, callback: impl FnMut() + 'static)
Expand description

Create a new effect. The effect will be run immediately and whenever any signal it reads changes. The signal will be owned by the current component and will be dropped when the component is dropped.