Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
Recomposition can run the body repeatedly. Put external work in an effect or a suitable state owner with an explicit lifetime.
LaunchedEffect starts coroutine work tied to its composition lifetime and restarts it when its keys change. Choose keys that describe the work identity, and handle cancellation. DisposableEffect is useful for registrations that require paired cleanup. Keep rendering predictable and avoid accidental repeated requests or leaked listeners.