`Html`is still on the page ! ┭┮﹏┭┮
hexianWeb opened this issue · 3 comments
Describe the bug
I noticed that tresjs helped me realize the dispose
of resources, so I import vue-router
in the Demo, hoping to use vue's life cycle components to help me switch scenes without worrying about resources not being disposed in time. But after I changed the routerView by url, the model in the scene finished changing, but the HTML still stayed on the page. I think this may due to createRenderer
or nodeops dispose
component and its child before the lifecycle hooks execute。
Reproduction
https://stackblitz.com/~/github.com/hexianWeb/tresjs-playground
Steps to reproduce
- click the "Go to other" button
- click the "Go to one“ button
System Info
No response
Used Package Manager
pnpm
Code of Conduct
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
I don't see the described behavior in the stackblitz reproduction.
Has this issue been fixed?
Sorry for the late reply, this issue has been fixed after tresjs v 4.0.0
.
This is the view when using tresjs v3.9.0
.
Need to close this issue
?
bandicam.2024-06-07.20-17-26-105.mp4
Hmm i'm not sure..
As there was only one breaking change between 3.9 and 4.0 i think upgrading to tres 4 is not that much of an issue.
Maybe @alvarosabu can chime in