create_effect_initial

Function create_effect_initial 

Source
pub fn create_effect_initial<R: 'static>(
    initial: impl FnOnce() -> (Rc<dyn Fn()>, R) + 'static,
) -> R
Expand description

Creates an effect on signals used inside the effect closure.

Unlike create_effect, this will allow the closure to run different code upon first execution, so it can return a value.