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
When you define events inside plotOptions, it look like the previous event listeners are not "dead" as you change the state, or someway the previous state keeps stored.
How to reproduce
Define an event inside plotOptions object and try to interact with state (or redux state) as it changes. At some point you'll get the previous state value.
In my project, I'm beeing able to reproduce using the redux state, for some reason the chart event gets several previous values of the redux store.
Live demo demonstrating bug
Versions
React JSX Highcharts version:
Highcharts version:
React version:
The text was updated successfully, but these errors were encountered:
I was testing again and It looks like the points that were hovered before the state changes, always get the previous values after the change. I could reproduce with the click event too, inside "series" property, but in this case the state value is always the initial one (null).
Bug or Feature Request?
Bug
Description
When you define events inside plotOptions, it look like the previous event listeners are not "dead" as you change the state, or someway the previous state keeps stored.
How to reproduce
Define an event inside plotOptions object and try to interact with state (or redux state) as it changes. At some point you'll get the previous state value.
In my project, I'm beeing able to reproduce using the redux state, for some reason the chart event gets several previous values of the redux store.
Live demo demonstrating bug
Versions
The text was updated successfully, but these errors were encountered: