pub fn watch<S>(
source: impl Fn() -> S + 'static,
cb: impl Fn(&S, Option<&S>) + 'static,
)where
S: Clone + 'static,Expand description
Derive-state without effect-write loops (§4.2): source is tracked; cb runs untracked
with (new, old). Does NOT fire for the initial value.