diff --git a/packages/astro/src/runtime/client/events.ts b/packages/astro/src/runtime/client/events.ts index 3c84dff363..aa8e927363 100644 --- a/packages/astro/src/runtime/client/events.ts +++ b/packages/astro/src/runtime/client/events.ts @@ -18,7 +18,7 @@ export const listen = (cb: (...args: any[]) => any) => window.addEventListener(H if (!(window as any)[HYDRATE_KEY]) { if ('MutationObserver' in window) { - new MutationObserver(() => notify()).observe(document.body, { subtree: true, childList: true }); + new MutationObserver(notify).observe(document.body, { subtree: true, childList: true }); } (window as any)[HYDRATE_KEY] = true; }