melihgultekin
09/20/2022, 8:40 AM“A composable function is ‘skippable’ if Compose determines that it can completely skip calling a function”
“if Compose can’t be sure, it will always be recomposed when its parent composable is recomposed.”From those, I understand as compose will do recomposition if a parameter is defined as unstable but what I experienced was a bit different. I run compose metrics and have this output for a composable:
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun DummyScreen(
stable id: String
stable onClick: Function1<Boolean, Unit>
stable modifier: Modifier? = @static Companion
unstable style: DummyStyle? = @dynamic Companion.Default
unstable viewModel: DummyViewModel? = @dynamic hiltViewModel(null, $composer, 0, 0b0001)
)
Even though parameters are unstable, composable itself is marked as skippable. Is this expected?