@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/bundles/ngxs-store-internals.umd.js +3 -2
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.js +87 -86
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/esm2015/internals/ngxs-bootstrapper.js +4 -3
- package/esm2015/src/actions-stream.js +7 -5
- package/esm2015/src/decorators/select/select-factory.js +4 -3
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +4 -3
- package/esm2015/src/internal/dispatcher.js +7 -5
- package/esm2015/src/internal/lifecycle-state-manager.js +4 -3
- package/esm2015/src/internal/state-context-factory.js +4 -3
- package/esm2015/src/internal/state-factory.js +24 -23
- package/esm2015/src/internal/state-operations.js +4 -3
- package/esm2015/src/internal/state-stream.js +4 -3
- package/esm2015/src/module.js +2 -21
- package/esm2015/src/store.js +4 -3
- package/fesm2015/ngxs-store-internals.js +3 -2
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store.js +77 -76
- package/fesm2015/ngxs-store.js.map +1 -1
- package/package.json +1 -1
- package/src/internal/state-factory.d.ts +10 -11
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
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>;
|