Find @Composable calls inside non-@Composable lambda parameters

Proprietary

A @Composable function called from inside a non-Composable lambda (e.g., a forEach { }) won't enter the composition tree correctly — the function executes but its emitted nodes don't get tracked for invalidation. Either move the call out of the lambda, or use a Compose-aware iterator (items(list) { … }).

org.openrewrite.kotlin.compose.FindComposableCallInNonComposableLambda$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindComposableCallInNonComposableLambda$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.