Find lazy-list items(...) { … } content lambdas that read a MutableState from the enclosing scope

Proprietary

When a LazyColumn/LazyRow content lambda reads a MutableState/State from the enclosing scope, every change to that state invalidates the entire item composition. Hoist the state into a per-item remember, or read it inside a child composable so only the affected item recomposes.

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