pub fn retain_with_key<K, F, T>(key: K, init: F) -> State<T>Expand description
Initializes keyed state during a build and keeps it until the component unmounts.
Unused retained slots survive conditional branches; see State for access
rules and StateOwner for independent controller or route lifetimes.