Function maple_core::prelude::create_effect_initial [−][src]
pub fn create_effect_initial<R: 'static>(
initial: impl FnOnce() -> (Rc<dyn Fn()>, R) + 'static
) -> R
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.