Chris Ward
Sep 19, 2022

--

Hi Patryk. The class would still be considered unstable by the compiler precisely because of the List<> field and would therefore still always be recomposed. As mentioned in the article, one way around this (often proposed) is to do what you suggest but mark the class as stable. But this goes against recommended practise and, as I mentioned in the article, feels somewhat icky.

--

--

Chris Ward
Chris Ward

Written by Chris Ward

Mobile Engineering Manager in Berlin kidding myself I'm still an Android Dev. ADHDer. Posts mainly about tech, politics and mental health.

No responses yet