Find LaunchedEffect(Unit) { … } blocks

Proprietary

LaunchedEffect(Unit) { … } runs exactly once per composition lifetime — that's intentional for one-shot startup work, but it is also the easiest spelling when the author wanted lifecycle-aware re-launch on a real key. Confirm Unit was intentional and not a placeholder for the actual dependencies the effect reads.

org.openrewrite.kotlin.compose.FindLaunchedEffectWithUnitKey$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindLaunchedEffectWithUnitKey$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.