Skip to content

Provide a way for zonejs to not patch MutationObserver #36460

@mjyocca

Description

@mjyocca

🐞 bug report

Affected Package

The issue is caused by package @angular/zone.js

Description

Our application runs Angular and Salesforce's Lightning Web Components in the same document. A component in their library depends on the MutationObserver to be the native implementation. Zone.js patches the MutationObserver unless we set flag, __Zone_disable_EventTarget = true. However we do not wish to set that flag.

Only work around that we found is to re-assign the Native Code implementation for MutationObserver found by window[Zone.__symbol__("MutationObserver")] before we load the component.

Wish for guidance or a solution to set zone.js to not patch the MutationObserver.

Metadata

Metadata

Assignees

Labels

area: zonesIssues related to zone.jsfeatureIssue that requests a new feature

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions