Hey, I'm currently using Three.js for a pre-login homepage and I've wrapped the scene in a DIV. However, when the user clicks login and I try to hide/clear the screen, I'm running into issues with rendering. Even though I attempt to hide it, the dashboard remains unclickable, indicating that the scene renderer is still active on the page. I am working within a single page application (SPA).
Can anyone provide some suggestions on how to effectively remove the Three.js scene? I have tried setting it to null after the user logs in and obtains a token, but this requires manual page refreshes for the dashboard to function properly. Additionally, when logging out, the Three.js scene on the homepage disappears, but I need to manually refresh the page as well.