Package-level declarations
Types
Link copied to clipboard
object StatePredicates
Functions
Link copied to clipboard
fun <T : Any> DistinctStateEffect(state: T?, isDistinct: (previous: T?, current: T?) -> Boolean = StatePredicates.distinctValue, onDistinctChange: (previous: T?, current: T?) -> Unit)
This invokes onDistinctChange when the state changes according to isDistinct. Used to trigger events when the state changes.