svelte-memory-leak Svelte Themes

Svelte Memory Leak

svelte memory leak repro

  1. Run pnpm i then pnpm build
  2. Serve the build output with pnpx serve dist
  3. Preview the served application, open Chrome developer tools and navigate to the Memory tab.
  4. Take a heap snapshot before doing anything.
  5. Click the toggle button on the left of the app several times to simulate navigation (changing between components)
  6. Take a new heap snapshot
  7. Observe the memory usage increase that doesn't go away over time.

Top categories

Loading Svelte Themes