fix: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion by CatchABus · Pull Request #11851 · chartjs/Chart.js
Conversation
While using chart.js with NativeScript, we noticed a rare resize bug after few HMR updates.
More specifically, _resize() call ended up with a recursion (might be a platform-related issue causing retinaScale() to malfunction?).
After some digging, I managed to get rid of the issue by unsetting pending resize request earlier.
CatchABus
changed the title
fix: Unset _resizeBeforeDraw before _resize call to avoid possible recursion
fix: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters