Open hkennyv opened 4 years ago
I am wondering is there a solution already?
@Dreemsuncho i haven't found a good solution to this yet, unfortunately.
i did post my temporary solution here though
facing the same issue @hkennyv did you find any solution
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey there, I was wondering if anyone knows a more graceful way to reset the series prop to avoid memory leaks.
Currently, the realtime example suggests setting all points except the last 10 points (assuming you want a fixed window of 10 points) to 0, however this doesn't prevent the
data
array from growing to be very large.I added a check to slice the data array when it gets too large in my wrapper component and it works, however it triggers a weird looking re-render that I'd like to avoid if possible. My component is below:
GraphWrapper.js