sveltejs / svelte-devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities
https://chromewebstore.google.com/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
MIT License
1.49k stars 79 forks source link

SvelteKit (Vite) hot reload requires reloading the extension (Firefox) #189

Closed davidjayb closed 7 months ago

davidjayb commented 7 months ago

Describe the bug Using SvelteKit with Vite, every time there is a code update served by Vite the Svelte Devtools needs to be reloaded. The plugin becomes unresponsive until reloaded.

To Reproduce Steps to reproduce the behavior:

  1. Open Svelte Devtools
  2. Go to your webpage
  3. Update a page/component

Expected behavior When a component is updated the plugin should reflect the updated code without requiring closing the devtools and re-opening.

Environment

Additional context

This seems to be a Firefox specific bug, or related to changes in master that have not been released. Using Chrome with the extension from the marketplace I was unable to reproduce this bug.

ignatiusmb commented 7 months ago

Would it be possible for you to record the behavior? I couldn't seem to make it unresponsive with a fresh Svelte+Vite or SvelteKit project, the only issue I can see is with HMR which is reported in #125

davidjayb commented 7 months ago

Ah yes, it is related to HMR.

ignatiusmb commented 7 months ago

Thanks for the confirmation, closing in favor of #125