Find Array<T> parameters on @Composable functions

Proprietary

JVM arrays are mutable references — Compose's stability inferrer marks an Array<T> parameter unstable, forcing the composable to recompose every time the parent recomposes. Prefer ImmutableList<T> or a @Stable wrapper.

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