fix: handle undefined series during re-renders #139
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Charts crashing when tooltip is visible and any kind of re-renders happen (updating timerange, zooming in, resizing chart, etc).
Ideally tooltips should immediately hide onMouseLeave but sometimes they stay visible and any kind of interaction with the chart causes the chart to crash.
This issue can be reproduced easily by disabling onMouseLeave on the tooltip in core-chart.
The main cause behind the issue was
seriesbeing undefined and trying to accessseries.chartcausing the crash.Screen.Recording.2025-12-22.at.18.27.19.mov
How has this been tested?
Tested in Core chart and CloudWatch console.
Correctness
CONTRIBUTING.md.CONTRIBUTING.md.Security
checkSafeUrlfunction.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.