Find LazyColumn/LazyRow items(...) calls missing a key = { … } argument
ProprietaryWithout a stable key, LazyColumn/LazyRow indexes items by position. Inserting an item shifts every following index and Compose has to recompose every visible child, recreating their state. A stable key (typically an id) lets Compose preserve composition state across reorderings and animations.
org. openrewrite. kotlin. compose. FindLazyListItemMissingKey$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindLazyListItemMissingKey$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.