Skip to main content

create_effect

Function create_effect 

pub fn create_effect<T>(
    fun: impl FnMut(Option<T>) -> T + 'static,
) -> Effect<LocalStorage>
where T: 'static,
👎Deprecated:

This function is being removed to conform to Rust idioms. Please use Effect::new() instead.

Expand description

Creates an Effect.