🐞 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.
🐞 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
MutationObserverto 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.