-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix navigator #251
Fix navigator #251
Conversation
Codecov Report
@@ Coverage Diff @@
## master #251 +/- ##
==========================================
+ Coverage 87.81% 94.47% +6.65%
==========================================
Files 82 68 -14
Lines 1026 832 -194
Branches 194 165 -29
==========================================
- Hits 901 786 -115
+ Misses 106 40 -66
+ Partials 19 6 -13 Continue to review full report at Codecov.
|
If we rebase this branch on master, I'll publish an alpha from it, then after testing we decide whether to merge or not? |
I rebased this. Any chance we can include #250 in the alpha too or just merge it to master first. |
Just this second merged #250, any chance you could rebase again? (Sorry!) I'll publish one alpha from master, and one alpha from this branch. |
Rebased. And great! |
Published master as And this branch as (note dev) |
[email protected] crashes LineSeries, but only sometimes. I'll try to make a reproduction of it. |
This won't work. Under some conditions react runs the render twice on mount. On second render the axisRef.current does not keep the previous renders value. This leads to creating the axis on both renders. So this PR needs to be scrapped. Also the ColorAxis needs to be fixed to use useEffect too. I am out of ideas how to fix the Navigator now. |
This fixes navigator crash when updated (#228 (comment)).
The root cause was that navigator re-creates it's axes when navigator is updated.
There were several problems:
Related issue on highcharts repository: highcharts/highcharts#12406
Probably more axis consumers, like Annotations and maybe Series need updating, but maybe we should test this in another alpha first?