Deferred update causes an uncaught error if `canvas` is destroyed
BR0kEN- opened this issue ยท 6 comments
It happens sometimes that canvas
element and ctx
are no longer exist during a deferred update. This causes errors like Cannot read property 'save' of null
. To reproduce this behavior we have to construct a new chart and kill canvas
before the delay is expired (e.g. when you navigate from one page to another without waiting for all charts to be rendered completely, including delayed updates).
any plan to incorporate @BR0kEN- fix to the main package? This error shows up in our E2E smoke testing suite as the test moves fast to the next screen without really leaving time for the chart to render.
There is no activity in this repo since 2018. I'm using "chartjs-plugin-deferred": "https://github.com/BR0kEN-/chartjs-plugin-deferred/tarball/v1.0.2",
since the patch creation.
thanks!