mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
* - fix: 'component is not defined' error when unmount svelte 5 component * added changeset * Moving unmount listener to where the component is defined. * Update .changeset/eighty-ligers-punch.md --------- Co-authored-by: Hermit <70563349+hermit99@users.noreply.github.com>
This commit is contained in:
parent
6e1dfeb76b
commit
5bc6223b12
2 changed files with 6 additions and 2 deletions
5
.changeset/eighty-ligers-punch.md
Normal file
5
.changeset/eighty-ligers-punch.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/svelte': patch
|
||||
---
|
||||
|
||||
Fixes an Reference Error that occurred during client transitions
|
|
@ -39,8 +39,7 @@ export default (element) => {
|
|||
},
|
||||
});
|
||||
existingApplications.set(element, component);
|
||||
}
|
||||
|
||||
element.addEventListener('astro:unmount', () => unmount(component), { once: true });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue