@angular-architects/ngrx-toolkit 20.4.1 → 20.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, InjectionToken, signal, effect, inject, PLATFORM_ID, computed, isSignal, untracked, isDevMode as isDevMode$1, DestroyRef } from '@angular/core';
2
+ import { Injectable, InjectionToken, signal, effect, inject, PLATFORM_ID, NgZone, computed, isSignal, untracked, isDevMode as isDevMode$1, DestroyRef } from '@angular/core';
3
3
  import { watchState, getState, signalStoreFeature, withMethods, withHooks, patchState as patchState$1, withState, withComputed, withProps, withLinkedState } from '@ngrx/signals';
4
4
  import { isPlatformBrowser, isPlatformServer } from '@angular/common';
5
5
  import { Subject, switchMap, mergeMap, concatMap, exhaustMap, defer, tap, catchError, EMPTY, finalize, filter, map } from 'rxjs';
@@ -270,11 +270,11 @@ class DevtoolsSyncer {
270
270
  */
271
271
  #currentState = {};
272
272
  #currentId = 1;
273
- #connection = this.#isBrowser
273
+ #connection = inject(NgZone).runOutsideAngular(() => this.#isBrowser
274
274
  ? window.__REDUX_DEVTOOLS_EXTENSION__
275
275
  ? window.__REDUX_DEVTOOLS_EXTENSION__.connect(this.#devtoolsConfig)
276
276
  : dummyConnection
277
- : dummyConnection;
277
+ : dummyConnection);
278
278
  constructor() {
279
279
  if (!this.#isBrowser) {
280
280
  return;