Skip to content
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

Persist component without re-mounting throughout pages #1961

Closed
TheAlexLichter opened this issue Nov 27, 2024 · 3 comments · Fixed by #2079
Closed

Persist component without re-mounting throughout pages #1961

TheAlexLichter opened this issue Nov 27, 2024 · 3 comments · Fixed by #2079

Comments

@TheAlexLichter
Copy link
Contributor

TheAlexLichter commented Nov 27, 2024

Is your feature request related to a problem? Please describe.

When rendering a demo/an iframe I'd sometimes like to show it consecutively throughout multiple slides. The problem is, that the iframe then resets.

Describe the solution you'd like

It'd be great to keep a component or an iframe "in it's state" but hidden so it can be re-used without remounting.

Not working example (might need to run locally). You should see different colors rendered through the website in the iframe. What would be desired would be the same color "somehow".

Describe alternatives you've considered

  • Use no slide numbers but a looot of v-click directives

Impl. Could be maybe similar to https://github.com/marchantweb/nuxt-adaptive-teleport

@kermanx
Copy link
Member

kermanx commented Feb 21, 2025

I guess this has been addressed in an earlier commit (which I am not sure). If this problem is still bothering you, feel free to re-open the issue. Thanks~

Edit: I am wrong.

@TheAlexLichter
Copy link
Contributor Author

@kermanx I have to check the test repo when having better internet again, but does #2079 really resolve the problem of having a "stateful component" throughout the slides? 🤔

@TheAlexLichter
Copy link
Contributor Author

Actually, I think this is the same as #2061 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants