Bloomca / veles

UI library with main focus on performance
https://bloomca.github.io/veles/
MIT License
48 stars 0 forks source link

add comparator support to selectState #78

Closed Bloomca closed 1 month ago

Bloomca commented 1 month ago

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.