pub fn shared_with_mut<T, R>( shared: &Shared<T>, f: impl FnOnce(&mut T) -> R, ) -> Rwhere T: Clone + PartialEq,
[Shared::with_mut] clones feature state once to detect changes.
Shared::with_mut