Skip to main content

remember

Function remember 

Source
pub fn remember<F, T>(init: F) -> State<T>
where F: FnOnce() -> T, T: Send + Sync + 'static,
Expand description

Initializes state by call order and control-flow position during a component build.

Use remember_with_key for reordered collections; see State for access and lifetime rules.