Posted 11 October 2024, 10:29 am EST
- Updated 11 October 2024, 10:49 am EST
Hi Akshay!
Actually, this answer leads to next questions:
Usually default properties are applied in the constructor. What if I need few Grids on the page? Does that mean, without calling “dispose” process on the wijmo source-control, I’ll receive a grid’s instance for my 2-nd component not in default shape?
Question 2:
The exercise with returning wijmo control in original shape means: once created, it is ready to be reused at any moment, isn’t it? But what if I don’t need it anymore? Is it not a direct sign of memory leak, if there are unused objects in the memory, accumulating and consuming more and more limited space?
It would be something deserving attention: the CSP complains only on dispose cycle of the wijmo control. All other control’s lifecycle methods (including animation) work safely. Maybe it worth to revise logic of dispose and tune it to be compliant with other methods? Or provide method to manage it from outside?
On the same note - this problem didn’t exist on the 2021 version of the wijmo products