two.js icon indicating copy to clipboard operation
two.js copied to clipboard

[Question] How to completely destroy instances of TwoJS ?

Open duping123456 opened this issue 1 year ago • 1 comments

I have a Vue project that references this JS. In one of the pages, four graphics drawn by TwoJS were rendered. When I re rendered the page, the four TwoJs were not destroyed and were regenerated. This caused the memory to constantly increase every time I switched data and re rendered the component, until the webpage crashed

duping123456 avatar Jul 17 '24 06:07 duping123456