solidjs/solid-site

Solid Tutorial Props Default breaks when solving/resetting in the greeting.tsx tab

Closed this issue · 1 comments

Describe the bug

If you are on the greeting.tsx tab when you press solve or reset, then main.tsx gets overwritten by what was in the greeting.tsx which breaks the code sandbox.

Your Example Website or App

https://www.solidjs.com/tutorial/props_defaults

Steps to Reproduce the Bug or Issue

  1. Go to https://www.solidjs.com/tutorial/props_defaults
  2. Press the greeting.tsx tab
  3. Press solve
  4. Refresh the code sand box
  5. Observe that the code sandbox has no display and that main.tsx has the wrong code

Expected behavior

You should see each file changing to their intended state instead being overwritten by the content of the other tabs.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Edge
  • Version: latest

Additional context

No response

Thanks for this report. We will investigate this shortly!