diff --git a/packages/signals/signals/src/core/signal-generators/dom-gen/mutation-observer.ts b/packages/signals/signals/src/core/signal-generators/dom-gen/mutation-observer.ts index ed84ee3be..45e840510 100644 --- a/packages/signals/signals/src/core/signal-generators/dom-gen/mutation-observer.ts +++ b/packages/signals/signals/src/core/signal-generators/dom-gen/mutation-observer.ts @@ -246,8 +246,8 @@ export class MutationObservable { return acc }, {}) - const isEmpty = Object.keys(mutations).length > 0 - if (!isEmpty) { + const isEmpty = Object.keys(mutations).length === 0 + if (isEmpty) { return }