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

REPL: Issues with customElements registry #1036

Open
Ocean-OS opened this issue Dec 18, 2024 · 0 comments
Open

REPL: Issues with customElements registry #1036

Ocean-OS opened this issue Dec 18, 2024 · 0 comments

Comments

@Ocean-OS
Copy link
Contributor

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.

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

No branches or pull requests

2 participants