We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0ae556 commit 9a2295fCopy full SHA for 9a2295f
1 file changed
packages/core/src/hydration/api.ts
@@ -188,12 +188,10 @@ export function withDomHydration(): EnvironmentProviders {
188
// The timing is similar to when we start the serialization process
189
// on the server.
190
//
191
- // Note: the cleanup task *MUST* be scheduled within the Angular zone
+ // Note: the cleanup task *MUST* be scheduled within the Angular zone in Zone apps
192
// to ensure that change detection is properly run afterward.
193
whenStableWithTimeout(appRef, injector).then(() => {
194
- NgZone.assertInAngularZone();
195
cleanupDehydratedViews(appRef);
196
-
197
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
198
printHydrationStats(injector);
199
}
0 commit comments