fix: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion by CatchABus · Pull Request #11851 · chartjs/Chart.js

Conversation

@CatchABus

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 CatchABus changed the title fix: Unset _resizeBeforeDraw before _resize call to avoid possible recursion fix: Unset _resizeBeforeDraw before _resize() call to avoid possible recursion

Aug 5, 2024

etimberg

LeeLenaleee

Labels