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
Edit src/routes/+page.svelte
Add component in <svelte:head />
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.
Describe the bug
When using a component in <svelte:head />, the component is not destroy when route change
Maybe related: #9329
Reproduction
Create an app
npm create svelte@latest my-app cd my-app npm install npm run dev -- --open
Create a component Test.svelte:
Edit src/routes/+page.svelte
Add component in <svelte:head />
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
The text was updated successfully, but these errors were encountered: