Closed Dovul closed 1 year ago
Update: so the problem above happens when the state in any parent component changes. Not just any state.
Update: Solve this problem. Any controls of the chart should be in the child component. Or you can use useRef
, useImperativeHandle
and forwardRef
method.
I'm sorry for bothering. I am still very amateur at web development and React. Thank you for this library :)
Yes, no matter what state changes on the page the chart resets. I still cant seem to figure it out.... for testing I'm setting the pause property with a click of a button. The streams pauses but the data is being reset
Originally posted by @arendeutsch in https://github.com/nagix/chartjs-plugin-streaming/issues/134#issuecomment-1069046817