Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add comparator support to selectState #78

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

Bloomca
Copy link
Owner

@Bloomca Bloomca commented Oct 14, 2024

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.

@Bloomca Bloomca merged commit 5de8ea1 into main Oct 14, 2024
1 check passed
@Bloomca Bloomca deleted the add-comparator-select-state branch October 14, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant