stopWatching function exported
Last updated: 2026-03-04T23:21:38.393Z
Location
Metrics
LOC: 17
Complexity: 4
Params: 0
Signature
stopWatching(): : void
Summary
Stops watching the DOM
Source Code
export function stopWatching(): void {
if (observer) {
observer.disconnect();
observer = null;
}
for (const so of shadowObservers) {
so.disconnect();
}
shadowObservers = [];
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = null;
}
isWatching = false;
onNewFieldsCallback = null;
log.debug("DOM watcher stopped");
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| FillableElement | uses |