pub fn create_stateful_updater<T, R>(
compute: impl Fn(Option<T>) -> (R, T) + 'static,
on_change: impl Fn(R, T) -> T + 'static,
) -> Rwhere
T: Any + 'static,
R: 'static,👎Deprecated since 0.2.0: Use UpdaterEffect::new_stateful instead; this will be removed in a future release
Expand description
Create an effect updater that runs on_change when any signals within compute subscribe to
changes. compute is immediately run and its return value is returned from create_updater.