Find @Stable classes holding mutable-collection properties
ProprietaryAn @Stable class with a MutableList/MutableMap/MutableSet property cannot uphold the contract: the collection can mutate without equals/hashCode reflecting the change, so Compose's skip-when-equal heuristic produces stale UI. Replace with ImmutableList/PersistentList or drop the @Stable annotation.
org. openrewrite. kotlin. compose. FindStableAnnotationOnClassWithMutableCollection$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindStableAnnotationOnClassWithMutableCollection$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.