?, I'm using MemoryCache.Key from Coil as a parameter to Composable Function, but not sure if by default it's considered Stable.
Shakil Karim
07/23/2021, 12:14 PM
cc @Colin White
d
dimsuz
07/23/2021, 12:28 PM
I second this wish.
I have another use case: I have entity-only, kotlin-only android-free gradle module. Which contains data classes, and I don't want to make it depend on
compose.ui.runtime
artifact.
But when I use classes from this module and pass them into
@Composable
functions for rendering, I'd like to mark them as
@Immutable
to enable potential optimizations by Compose.
👍 1
dimsuz
07/23/2021, 12:31 PM
cc @jim (iirc we also had discussion along these lines, but not about "external" marking)