It seems like if I pass a data class that has internal visibility to a Composable, then even though the Compose compiler metrics output identifies the parameter as stable it seems to still cause recompositions when the value doesn't change. Removing the internal or adding @Immutable fixes it. Is this expected? Took a few hours to debug that one...
m
myanmarking
12/15/2022, 4:58 PM
paste the data class here
l
luke_c
12/15/2022, 7:11 PM
Nothing special about it
Copy code
internal data class CountryUiModel(
val code: String,
val name: String,
val flagResource: Int?,
val diallingCode: String
)