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
Hi,
I'm working on a heatmap chart where the different items can be clicked to highlight other elements on the page.
I've run into some strange behaviour though where the onEvents function gets called an increasingly larger amount of times for every time the heatmap is clicked (2*number of clicks), which slows down the page and crashes it after a while.
This happens only when calling this.setState() within the function.
Relevant code below.
Hi,
I'm working on a heatmap chart where the different items can be clicked to highlight other elements on the page.
I've run into some strange behaviour though where the onEvents function gets called an increasingly larger amount of times for every time the heatmap is clicked (2*number of clicks), which slows down the page and crashes it after a while.
This happens only when calling
this.setState()
within the function.Relevant code below.
Console output:
If anyone has any idea about what might be going on it would be appreciated
Cheers
The text was updated successfully, but these errors were encountered: