You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Web Components at all in the Svelte REPL, to correctly update the preview, you have to reload the page. This is because a Custom Element can only be defined once, and since the REPL doesn't reload the iframe when the code changes, it causes errors to happen. Reproduction
One possible remedy for this would be to check if the code uses custom elements, and if so, to reload the iframe on each code change.
The text was updated successfully, but these errors were encountered:
When working with Web Components at all in the Svelte REPL, to correctly update the preview, you have to reload the page. This is because a Custom Element can only be defined once, and since the REPL doesn't reload the iframe when the code changes, it causes errors to happen.
Reproduction
One possible remedy for this would be to check if the code uses custom elements, and if so, to reload the iframe on each code change.
The text was updated successfully, but these errors were encountered: