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

redundant calls to setValue don't trigger onChange #131

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

georgealways
Copy link
Owner

@georgealways georgealways commented Dec 28, 2023

Abort setValue if currentValue === newValue.

One possible harm I can see here is someone using setValue() on an array or object based color controller, expecting it to trigger onChange and updateDisplay. Tested, and both methods still fire.

Fixes #125 and part of #124.

@georgealways georgealways added this to the 0.19.1-dev milestone Dec 28, 2023
@georgealways georgealways merged commit d41d214 into dev Mar 3, 2024
@georgealways georgealways deleted the redundant-set-value branch March 3, 2024 14:42
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