segunfamisa
06/29/2020, 6:19 AMmutableStateOf()
replacement suggestions for @Model
However, when I use a sealed class hierarchy to model my state, e.g like I've done here (https://github.com/segunfamisa/android-zeitung/pull/17/files#diff-03a45e46e60aaa4e3efa4e4e6041dea3R11-R23), I get an exception during IR lowering. The line that stood out for me was: Caused by: java.lang.AssertionError: Object should have a primary constructor: ...
I'm wondering if this is a technical limitation worth filing as a FR or bug, or something I totally not should be doing?Leland Richardson [G]
06/29/2020, 6:29 AMLeland Richardson [G]
06/29/2020, 6:31 AMmon
06/29/2020, 6:43 AM@Composable
on the val
segunfamisa
06/29/2020, 6:47 AMsegunfamisa
06/29/2020, 6:50 AMsegunfamisa
06/29/2020, 6:52 AMsegunfamisa
06/29/2020, 6:54 AMmon
06/29/2020, 6:55 AMstringResource
and vectorResource
are @Composable
functions so calling them in a constructor is probably whysegunfamisa
06/29/2020, 7:26 AMsegunfamisa
06/29/2020, 7:27 AMLeland Richardson [G]
06/29/2020, 4:00 PMLeland Richardson [G]
06/29/2020, 4:01 PMLeland Richardson [G]
06/29/2020, 4:01 PMLeland Richardson [G]
06/29/2020, 4:01 PM