Skip to content

Commit e53df3c

Browse files
committed
Harden component lifecycle helpers
1 parent c3b1c1e commit e53df3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ui/src/utils/lifecycle.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function mountOnPageLoad(setup: (signal: AbortSignal) => void): void {
2828
run();
2929
}
3030

31+
document.addEventListener('astro:after-swap', run);
3132
document.addEventListener('astro:page-load', run);
3233
document.addEventListener('astro:before-swap', cleanup);
3334
}

0 commit comments

Comments
 (0)