Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotOptions events issue when using state/redux #2

Open
ITopGun opened this issue Aug 7, 2022 · 1 comment
Open

plotOptions events issue when using state/redux #2

ITopGun opened this issue Aug 7, 2022 · 1 comment

Comments

@ITopGun
Copy link
Member

ITopGun commented Aug 7, 2022

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

  • React JSX Highcharts version:
  • Highcharts version:
  • React version:
@ITopGun
Copy link
Member Author

ITopGun commented Aug 7, 2022

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).

ITopGun added a commit that referenced this issue Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant