We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa418e commit a73c919Copy full SHA for a73c919
apps/stage-web/src/main.ts
@@ -81,8 +81,7 @@ if (import.meta.env.DEV && !import.meta.env.SSR) {
81
82
observer.observe(document.body, { childList: true, subtree: true })
83
84
- // Disconnect on timeout (in case)
85
- setTimeout(() => {
86
- observer.disconnect() // Safe to call even if already disconnected
87
- }, 60 * 1000)
+ // Disconnect on timeout in case the MutationObserver is left here forever.
+ // `observer.disconnect()` is idempotent, so it's safe to call it multiple times.
+ setTimeout(() => observer.disconnect(), 15 * 1000)
88
}
0 commit comments