react-financial-charts icon indicating copy to clipboard operation
react-financial-charts copied to clipboard

ZoomButtons: multiple calls to onLoadBefore and onLoadAfter per click

Open yaro90 opened this issue 2 years ago • 1 comments

I'm submitting a...

  • [x] bug
  • [ ] feature
  • [ ] chore

What is the current behavior

Multiple calls to to onLoadBefore or onLoadAfter per click

What is the expected behavior

Single call to onLoadBefore or onLoadAfter per click

Please tell us about your environment

  • Version: 1.3.2
  • Browser: [all]

Other information

Possible solution is to add ignoreOnload flag which would be true until last interval is hit, but I'm not sure if optimal: image image

yaro90 avatar Nov 14 '22 16:11 yaro90

image I used this solution from lodash debounce function, it helped me somehow.

amaneer94 avatar Jan 18 '24 23:01 amaneer94