Closed BR0kEN- closed 3 years ago
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.
@ejosafat @BR0kEN- I'm really sorry, I wasn't able to work on this project when the patch has been submitted and then I forgot about it. I will try to review it as soon as possible and release a new version.
Fixed by #14 and released as part of v1.0.2.
Hurray! Finally! Thanks!
thanks!
It happens sometimes that
canvas
element andctx
are no longer exist during a deferred update. This causes errors likeCannot read property 'save' of null
. To reproduce this behavior we have to construct a new chart and killcanvas
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).