monkey-front-core 0.0.375 → 0.0.377
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/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +9 -6
- package/fesm2015/monkey-front-core.mjs +8 -5
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +8 -5
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.377.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.375.tgz +0 -0
|
@@ -20,7 +20,7 @@ import { TemplatePortal } from '@angular/cdk/portal';
|
|
|
20
20
|
import * as i1$4 from '@angular/cdk/overlay';
|
|
21
21
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
22
22
|
import * as i2$3 from '@ngrx/store';
|
|
23
|
-
import { createAction, props, INIT,
|
|
23
|
+
import { createAction, props, INIT, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
24
24
|
import { createEntityAdapter } from '@ngrx/entity';
|
|
25
25
|
import { __decorate } from 'tslib';
|
|
26
26
|
import { datadogRum } from '@datadog/browser-rum';
|
|
@@ -2455,10 +2455,10 @@ const seederReducer = (keys) => {
|
|
|
2455
2455
|
return (reducer) => {
|
|
2456
2456
|
return (state, action) => {
|
|
2457
2457
|
const handledState = reducer(state, action);
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2458
|
+
if (action.type === INIT) {
|
|
2459
|
+
console.log('=============');
|
|
2460
|
+
console.log(handledState);
|
|
2461
|
+
console.log(action.type);
|
|
2462
2462
|
let data = null;
|
|
2463
2463
|
try {
|
|
2464
2464
|
const storage = localStorage.getItem('mecx-store');
|
|
@@ -2501,6 +2501,9 @@ const seederReducer = (keys) => {
|
|
|
2501
2501
|
catch (e) {
|
|
2502
2502
|
localStorage.removeItem('mecx-store');
|
|
2503
2503
|
}
|
|
2504
|
+
console.log('@@@@@@@@@@@@');
|
|
2505
|
+
console.log(handledState);
|
|
2506
|
+
console.log(action.type);
|
|
2504
2507
|
return handledState;
|
|
2505
2508
|
};
|
|
2506
2509
|
};
|