Open enda opened 7 months ago
any update on this one ?
It still a bug on svelte 4.2.12
System:
OS: macOS 14.2.1
CPU: (8) x64 Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
Memory: 472.61 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.0 - ~/.nvm/versions/node/v18.20.0/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v18.20.0/bin/npm
Browsers:
Chrome: 123.0.6312.87
Safari: 17.2.1
npmPackages:
svelte: ^4.0.5 => 4.2.12
Describe the bug
When using a component in , the component is not destroy when route change
Maybe related: https://github.com/sveltejs/svelte/issues/9329
Reproduction
Create an app
Create a component Test.svelte:
Edit src/routes/+page.svelte Add component in
Open browser and console, change route, the
<link rel="hello" as="world" />
is still there. Go back to home, the<link rel="hello" as="world" />
is present twice.Logs
System Info
Severity
annoyance