Osman Saral
08/22/2023, 9:40 AMCiaran Sloan
08/22/2023, 9:44 AM@Immutable
annotation, so that the compiler can process these as stable classes.
See screenshot for an example:Osman Saral
08/22/2023, 9:50 AMIncorrectly annotating a class could cause recomposition to break.
mean? Using only val and immutable collections should be enough for a class to be immutable right?Ciaran Sloan
08/22/2023, 9:51 AMUsing only val and immutable collections should be enough for a class to be immutable right?Yes this is correct, but as the docs specify any class that is declared in a module where the compiler is not run, then the compiler cannot assess that classes stability
Ciaran Sloan
08/22/2023, 9:51 AMOsman Saral
08/22/2023, 9:54 AMCiaran Sloan
08/22/2023, 9:54 AMOsman Saral
08/22/2023, 9:56 AMOsman Saral
08/22/2023, 10:00 AMCiaran Sloan
08/22/2023, 10:00 AMOsman Saral
08/22/2023, 10:05 AM