I have small question. I was using ./gradlew :app:...
# compose
m
I have small question. I was using ./gradlew appreleaseComposeCompilerHtmlReport to generate report which gives if my composables are stable(Skippable & Restartable). I have one composable where I am using Viewmodel inside one composable and using that viewmodel I am getting one object and using that objects attributes to populate ui. But it is making composable non skippable so is there any way we can use viewmodel in a better way so that our compostables can be skippable.
fun LoadItem() {
val testObject = viewModel.objectState.value // objectState is State in viewmodel. Even if I am reading directly without state then also same issue
Text(
modifier =
Modifier
._padding_(start = dimensionResource(id = R.dimen._dim_10dp_))
._weight_(1f),
text = testObject?.name ?: "",
color = _COLOR_232428_,
fontSize = 18._sp_,
fontFamily = _RobotoRegular_,
lineHeight = 20._sp_,
)
}