Find LaunchedEffect bodies with several distinct suspend calls
ProprietaryA LaunchedEffect lambda that issues several distinct top-level suspend calls is usually doing two things: a long-running collector plus an unrelated kickoff. Split them into separate LaunchedEffects keyed independently so canceling one doesn't cancel the other on key changes.
org. openrewrite. kotlin. compose. FindLaunchedEffectMultipleSuspendCalls$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindLaunchedEffectMultipleSuspendCalls$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.