Description
A common pattern in React is to have global state management. Even with debouncing, frequent updates on any moderately large global state is expensive. Would it be possible to add a changeEnd
event that returns a final value based on perhaps on internal mouseup
event of the different color pickers?
This would allow updating state once on user input completion.
An example use case would be - considering the color picker for the graphic design tool canva.com - where color updates are reflected in real time on elements the user is editing. This part of the problem can perhaps be handled imperatively. However, we would still need to update the state with the final value to sync it with imperatively updated values. This is where an changeEnd
event would be useful.
Happy to hear feedback and if you'd be open to me working on a PR.
Thanks.