Find remember { … } calls with no keys
Proprietaryremember { … } with no key arguments caches once per call site forever. If the block references variables that vary between recompositions, the cache holds a stale value. Either pass the referenced variables as keys (remember(input) { … }) or — if the value really is invariant — leave a comment justifying it.
org. openrewrite. kotlin. compose. FindRememberNoKeys$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindRememberNoKeys$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.