Open whitespacecode opened 4 weeks ago
Looks like we're calling .dispose()
twice when this is removed from the scene. Easy fix, though it's interesting how this bug got in
@andretchen0 is this solved by the disposal refactor?
@alvarosabu
is this solved by the disposal refactor?
Most likely. I will make a test from the reproduction and add it to the nodeOps tests.
Describe the bug
When i try to show/hide the GridHelper i get a TypeError. The code still works. I tried it on an older tresjs version and no typeError happend.
<TresGridHelper v-if="gridHelper.visible" :args="[10, 100, 0xff0000]" />
Not sure if that is also the case for other components.
Reproduction
https://stackblitz.com/edit/tresjs-basic-hfgtuj
Steps to reproduce
Use the reproduction, click on the button 'Toggle Grid' and check the console logs.
System Info
Used Package Manager
npm
Code of Conduct