Closed Bloomca closed 1 month ago
Add third parameter to the selectState function, comparator(previous: T, next: T) => boolean, which allows to control updates. I found it to be an important tool while optimizing selectors with arrays.
selectState
comparator(previous: T, next: T) => boolean
Description
Add third parameter to the
selectState
function,comparator(previous: T, next: T) => boolean
, which allows to control updates. I found it to be an important tool while optimizing selectors with arrays.