rnett
04/10/2021, 4:43 AM@Immutable
) in a separate, common artifact? I have some data definitions in a common module that doesn't have compose dependencies, and would like to mark them as immutable.jw
04/10/2021, 4:53 AM@OptionalExpectation
and then actual typealias
in the Android source setrnett
04/10/2021, 5:59 AM@Immutable
even on the jvm source set. I could add the compose runtime as a dependency there and do it, but it's rather big and there should be an easier way imo.Albert Chang
04/10/2021, 3:48 PMzalewski.se
04/10/2021, 7:22 PMtypealias
(that points to your state data class) in the module where you have compose and then annotate this typealias
with @Immutable
? Later you just pass your state to Composable fun as
the typealias
you created. Not sure if that would work tho 🤔