Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sammibajrami authored Oct 5, 2024
2 parents 9d39c01 + 5bc6223 commit becc89d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-ligers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/svelte': patch
---

Fixes an Reference Error that occurred during client transitions
3 changes: 1 addition & 2 deletions packages/integrations/svelte/client-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default (element) => {
},
});
existingApplications.set(element, component);
element.addEventListener('astro:unmount', () => unmount(component), { once: true });
}

element.addEventListener('astro:unmount', () => unmount(component), { once: true });
};
};

0 comments on commit becc89d

Please sign in to comment.