@ngxs/store 3.7.5-dev.master-17a1bb8 → 3.7.5-dev.master-708406e

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.
@@ -2,7 +2,7 @@ import { __assign, __spread, __extends, __values } from 'tslib';
2
2
  import { NgZone, Injectable, Inject, PLATFORM_ID, defineInjectable, inject, InjectionToken, INJECTOR, ɵglobal, Optional, SkipSelf, ErrorHandler, Injector, ɵivyEnabled, NgModule, APP_BOOTSTRAP_LISTENER } from '@angular/core';
3
3
  import { memoize, INITIAL_STATE_TOKEN, NgxsBootstrapper, NGXS_STATE_CONTEXT_FACTORY, NGXS_STATE_FACTORY, InitialState } from '@ngxs/store/internals';
4
4
  import { isPlatformServer } from '@angular/common';
5
- import { Observable, Subject, BehaviorSubject, of, forkJoin, throwError, EMPTY, from, queueScheduler } from 'rxjs';
5
+ import { Observable, Subject, BehaviorSubject, of, forkJoin, throwError, EMPTY, from, isObservable, queueScheduler } from 'rxjs';
6
6
  import { filter, map, shareReplay, take, exhaustMap, mergeMap, defaultIfEmpty, catchError, takeUntil, tap, observeOn, distinctUntilChanged } from 'rxjs/operators';
7
7
 
8
8
  /**
@@ -2827,7 +2827,7 @@ var StateFactory = /** @class */ (function () {
2827
2827
  if (result instanceof Promise) {
2828
2828
  result = from(result);
2829
2829
  }
2830
- if (result instanceof Observable) {
2830
+ if (isObservable(result)) {
2831
2831
  // If this observable has been completed w/o emitting
2832
2832
  // any value then we wouldn't want to complete the whole chain
2833
2833
  // of actions. Since if any observable completes then
@@ -2844,7 +2844,7 @@ var StateFactory = /** @class */ (function () {
2844
2844
  if (value instanceof Promise) {
2845
2845
  return from(value);
2846
2846
  }
2847
- if (value instanceof Observable) {
2847
+ if (isObservable(value)) {
2848
2848
  return value;
2849
2849
  }
2850
2850
  return of(value);