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

Infinite hot reload with Svelte 5 beta #243

Open
dshook opened this issue Jan 14, 2025 · 3 comments
Open

Infinite hot reload with Svelte 5 beta #243

dshook opened this issue Jan 14, 2025 · 3 comments

Comments

@dshook
Copy link

dshook commented Jan 14, 2025

Hi, commented on the original issue but thought it'd be better to open a new one since I can't reopen the original one.

Looks like the extension@2.0.0-beta.8 update works well for new tabs, but I'm having an issue when using Svelte 5 in a content script where everything works the first time, but then after changing anything the hot reload gets into an infinite loop reloading the page.

Here's a repo based off the svelte template: https://github.com/dshook/extension-svelte-test then all you have to do (with chrome) is:

  1. go to google
  2. See the component works in the top right
  3. Make any change to the results component
  4. See the page reload over and over again
@cezaraugusto
Copy link
Member

thanks for reporting, @dshook!

this is related to #207. I need to enable page reload in content_scripts to make Svelte and non-framework demos work in there. patch should happen in the next release

@dshook
Copy link
Author

dshook commented Feb 27, 2025

@cezaraugusto curious if you've made any progress on this or if it's something I should look into fixing.

@cezaraugusto
Copy link
Member

@dshook I've been working on it at #239 which has a sample Svelte repo. if you have a chance I'd love to know if it's working on your end too

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