You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say: Callback invoked on mouse up when a Brush size is being updated.
Not sure if I’m misunderstanding what this is suppose to do, but I would expect this callback to only fire when the user lets go of a mouse drag. Instead, I’m seeing it fire every time the value of the brush changes.
I'm keeping track of the current start and end dates using useState.
Since onBrushEnd is being calling so many times, I'm setting the state like 50 times during one short drag and performance is tanking hard.
Thanks!
The text was updated successfully, but these errors were encountered:
Is onBrushEnd broken for the Brush component?
The docs say:
Callback invoked on mouse up when a Brush size is being updated
.Not sure if I’m misunderstanding what this is suppose to do, but I would expect this callback to only fire when the user lets go of a mouse drag. Instead, I’m seeing it fire every time the value of the brush changes.
I'm keeping track of the current start and end dates using
useState
.Since
onBrushEnd
is being calling so many times, I'm setting the state like 50 times during one short drag and performance is tanking hard.Thanks!
The text was updated successfully, but these errors were encountered: