@ngxs/store 3.8.0-dev.master-a827bb0 → 3.8.0-dev.master-c31ed89

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "../../node_modules/ng-packagr/package.schema.json",
3
3
  "name": "@ngxs/store",
4
- "version": "3.8.0-dev.master-a827bb0",
4
+ "version": "3.8.0-dev.master-c31ed89",
5
5
  "license": "MIT",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
@@ -7,7 +7,16 @@ import { InternalDispatchedActionResults } from '../internal/dispatcher';
7
7
  import { StateContextFactory } from '../internal/state-context-factory';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
- * State factory class
10
+ * The `StateFactory` class adds root and feature states to the graph.
11
+ * This extracts state names from state classes, checks if they already
12
+ * exist in the global graph, throws errors if their names are invalid, etc.
13
+ * See its constructor, state factories inject state factories that are
14
+ * parent-level providers. This is required to get feature states from the
15
+ * injector on the same level.
16
+ *
17
+ * The `NgxsModule.forFeature(...)` returns `providers: [StateFactory, ...states]`.
18
+ * The `StateFactory` is initialized on the feature level and goes through `...states`
19
+ * to get them from the injector through `injector.get(state)`.
11
20
  * @ignore
12
21
  */
13
22
  export declare class StateFactory implements OnDestroy {
@@ -37,9 +46,6 @@ export declare class StateFactory implements OnDestroy {
37
46
  * Add a set of states to the store and return the defaults
38
47
  */
39
48
  addAndReturnDefaults(stateClasses: StateClassInternal[]): StatesAndDefaults;
40
- /**
41
- * Bind the actions to the handlers
42
- */
43
49
  connectActionHandlers(): void;
44
50
  /**
45
51
  * Invoke actions on the states.
@@ -47,13 +53,6 @@ export declare class StateFactory implements OnDestroy {
47
53
  invokeActions(dispatched$: Observable<ActionContext>, action: any): Observable<unknown[]>;
48
54
  private addToStatesMap;
49
55
  private addRuntimeInfoToMeta;
50
- /**
51
- * @description
52
- * the method checks if the state has already been added to the tree
53
- * and completed the life cycle
54
- * @param name
55
- * @param path
56
- */
57
56
  private hasBeenMountedAndBootstrapped;
58
57
  static ɵfac: i0.ɵɵFactoryDeclaration<StateFactory, [null, null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }]>;
59
58
  static ɵprov: i0.ɵɵInjectableDeclaration<StateFactory>;