Find LaunchedEffect(Unit) { … } blocks
ProprietaryLaunchedEffect(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$KtRecipemod 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.