NgZone is an Angular injectable wrapper around Zone.js execution contexts. Its APIs can support existing Angular applications, but some stability-related APIs become incompatible with zoneless change detection. section 10.3.5
When preparing an application for zoneless change detection:
- Remove uses of NgZone.onMicrotaskEmpty, NgZone.onUnstable, NgZone.isStable, and NgZone.onStable; their tasks become unnecessary with zoneless operation. section 10.3.5
- Retain NgZone.run and NgZone.runOutsideAngular, which remain compatible with zoneless applications. section 10.3.5
- Check server-side rendering separately because SSR uses application stability to determine when rendered output can be serialized. section 10.3.5
