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

Allow externally defined shouldComponentUpdate #57

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SudoPlz
Copy link

@SudoPlz SudoPlz commented May 16, 2023

This commit allows the user to externally control immediate updates with a callback similar to shouldComponentUpdate. When that returns true, we can flush the debounced update, and immediately re-render.

SudoPlz added 2 commits May 16, 2023 13:50
This commit allows the user to externally control immediate updates with a callback similar to `shouldComponentUpdate`. When that returns true, we can flush the debounced update, and immediately re-render.
@podefr
Copy link
Owner

podefr commented May 16, 2023

Thanks, this looks interesting. Would you mind adding the tests for that as well as the doc in the README.md?

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.

2 participants