I want to have a field in a data class that is type of java.time.LocalDate or kotlinx.datetime.LocalDateTime. This class will be consumed in a composable method.
But in metric report this class is unstable because of this field unstability.
How can I have an stable LocalDateTime class?
You can create a data class which you promise to the platform that using
@Immutable, you will always make a new copy of the data when you pass it.for example:
Then you can use it on your data class and it is stable now for example: