stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
503 stars 48 forks source link

Preview not disappearing when coming back to only content lesson #405

Closed shhdharmen closed 1 week ago

shhdharmen commented 2 weeks ago

Describe the bug

If you create a lesson with only content (keeping editor, terminal and previews as false), then go the next lesson which has previews enabled, wait until previews are loaded, then come back to content only lesson, you will see that preview is not going away.

Link to a StackBlitz project which shows the error

https://stackblitz.com/github/shhdharmen/dawn-snowflake

Steps to reproduce

  1. Create a content only lesson (keeping editor, terminal and previews as false)
  2. Create next lesson with everything
  3. Open content only lesson
  4. Go to next lesson using bottom navigation
  5. Wait until preview is loaded
  6. Come back to content only lesson using bottom navigation
  7. Observe that preview is not going away

Expected behavior

When coming back to content only lesson, preview should disappear.

Screenshots

Uploading Screen Recording 2024-11-05 203540.mp4…

Platform

Additional context

No response

AriPerkkio commented 1 week ago

Fixed in 1.2.2.