Use primitive mutable<Int|Long|Float|Double>StateOf in Compose
ProprietaryInside @Composable functions, replaces mutableStateOf(<primitive>) with the matching primitive-specialized mutableIntStateOf/mutableLongStateOf/mutableFloatStateOf/mutableDoubleStateOf. The specialized state holders keep the wrapped value unboxed across reads and writes during recomposition.
org. openrewrite. kotlin. performance. UseComposePrimitiveStateOf$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. UseComposePrimitiveStateOf$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.
Recipe list
It runs these recipes, in this order.