Find remember(mutableListOf(...), …) and similar unstable-key calls

Proprietary

A remember(key, calc) whose key is a fresh allocation — mutableListOf(...), arrayOf(...), listOf(...) — is structurally a new key on every recomposition. The cache resets every time, defeating the entire purpose of remember. Pass the underlying values that do survive recomposition (or stable references) as the keys.

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