Is there an effective method to properly destroy a three js instance?
I am encountering an issue where removing the canvas and re-adding it results in two renderers being created.
Presently, my approach involves:
- Removing all event listeners
- Cancelling requestAnimationFrame
- Deleting the renderer instance from its parent element