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
Copy file name to clipboardexpand all lines: packages/create-vite/template-svelte/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ It is likely that most cases of changing variable types in runtime are likely to
35
35
36
36
**Why is HMR not preserving my local component state?**
37
37
38
-
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/rixo/svelte-hmr#svelte-hmr).
38
+
HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
39
39
40
40
If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
0 commit comments