Function create_effect

Source
pub fn create_effect<F>(
    _scope: &ReactiveScope,
    callback: F,
) -> Effect<Box<dyn FnMut() + Send + Sync + 'static>>
where F: FnMut() + Send + Sync + 'static,
Expand description

Create a new effect that runs when dependencies change