@ngxs/store 3.8.1-dev.master-5942e46 → 3.8.1-dev.master-9b1dc3e

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.1-dev.master-5942e46",
3
+ "version": "3.8.1-dev.master-9b1dc3e",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,3 +1,4 @@
1
+ import { PlainObject } from '@ngxs/store/internals';
1
2
  export declare function throwStateNameError(name: string): never;
2
3
  export declare function throwStateNamePropertyError(): never;
3
4
  export declare function throwStateUniqueError(current: string, newName: string, oldName: string): never;
@@ -6,6 +7,7 @@ export declare function throwActionDecoratorError(): never;
6
7
  export declare function throwSelectorDecoratorError(): never;
7
8
  export declare function getZoneWarningMessage(): string;
8
9
  export declare function getUndecoratedStateInIvyWarningMessage(name: string): string;
10
+ export declare function getInvalidInitializationOrderMessage(addedStates?: PlainObject): string;
9
11
  export declare function throwSelectFactoryNotConnectedError(): never;
10
12
  export declare function throwPatchingArrayError(): never;
11
13
  export declare function throwPatchingPrimitiveError(): never;
@@ -2,6 +2,7 @@ import { OnDestroy } from '@angular/core';
2
2
  import { NgxsBootstrapper } from '@ngxs/store/internals';
3
3
  import { Store } from '../store';
4
4
  import { InternalErrorReporter } from './error-handler';
5
+ import { InitState, UpdateState } from '../actions/actions';
5
6
  import { StateContextFactory } from './state-context-factory';
6
7
  import { InternalStateOperations } from './state-operations';
7
8
  import { StatesAndDefaults } from './internals';
@@ -13,9 +14,10 @@ export declare class LifecycleStateManager implements OnDestroy {
13
14
  private _stateContextFactory;
14
15
  private _bootstrapper;
15
16
  private readonly _destroy$;
17
+ private _initStateHasBeenDispatched?;
16
18
  constructor(_store: Store, _internalErrorReporter: InternalErrorReporter, _internalStateOperations: InternalStateOperations, _stateContextFactory: StateContextFactory, _bootstrapper: NgxsBootstrapper);
17
19
  ngOnDestroy(): void;
18
- ngxsBootstrap<T>(action: T, results: StatesAndDefaults | undefined): void;
20
+ ngxsBootstrap(action: InitState | UpdateState, results: StatesAndDefaults | undefined): void;
19
21
  private _invokeInitOnStates;
20
22
  private _invokeBootstrapOnStates;
21
23
  private _getStateContext;