-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent / Global Components #2061
Comments
Just an idea (not sure how much it differs from classical teleport, but I guess it is different as it is more a fake teleport):
|
@twitwi The problem with |
Thank you @TheAlexLichter for reporting this issue in my interest. I originally encountered this problem in the following slides/ talk: I attempted to bind the TresJS context using I also tried using In the end, I implemented the alternative and much hackier solution that I discussed with @TheAlexLichter using |
Hi @TheAlexLichter , I looked at Tresjs/tres#464 , maybe I read too fast, but just in case, could the issue be that v-if will remove the element from the DOM and thus tres will need to re-init? |
Is your feature request related to a problem? Please describe.
As an educator, I want to show a demo of a running script, e.g. a 3D Scene rendered via TresJS throughout my slides.
The scene should not reload when slides are switched and instead stay the same (or, if I control it via props, even do something else).
Same could be applied to iframes that are shown in a 2-column layout during a presentation.
Originally, @toddeTV hit this issue when creating slides around 3D and Vue.
Describe the solution you'd like
It would be great to have a way to keep these components alive somehow, so they do not re-render when the slides are changed.
Describe alternatives you've considered
global-top.vue
- doesn't work, no matter if deferred or not. Maybe a pattern from https://github.com/marchantweb/nuxt-adaptive-teleport could be applied but would still cause issues with TresJS/3D content.global-top.vue
w/o teleports - works for all types of content but is even hackier 😂Related
(Somewhat) #2041
The text was updated successfully, but these errors were encountered: