Selector

@ObjCName(name = "ReduKtSelector", exact = true)
interface Selector<State, Selected>

Associates select function with isStateEqual and isSelectionEqual to improve selection performance.

Functions

Link copied to clipboard

Determines if selected state has changed.

Link copied to clipboard
open fun isStateEqual(old: State, new: State): Boolean

Determines if selected state should be recalculated.

Link copied to clipboard
abstract fun select(state: State): Selected

Calculates selected state