pub fn DurableSaveEffect<K: PartialEq + 'static>(
keys: K,
save: impl Fn() + Send + Sync + 'static,
)Expand description
Registers save for as long as this call stays in the composition.
The host runs it when the app is about to be suspended, off the UI thread and under a background-work lease, so a slow write does not stall the lifecycle callback the platform is waiting on.