Snapshot Mutation Policy
A policy to control how the result of mutableStateOf report and merge changes to the state object.
A mutation policy can be passed as an parameter to mutableStateOf, and ambientOf.
Typically, one of the stock policies should be used such as referentialEqualityPolicy, structuralEqualityPolicy, or neverEqualPolicy. However, a custom mutation policy can be created by implementing this interface, such as a counter policy,
Samples
androidx.compose.runtime.samples.counterSample