monkey-front-core 0.0.299 → 0.0.300
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 +2 -3
- package/fesm2015/monkey-front-core.mjs +27 -27
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +27 -27
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.300.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.299.tgz +0 -0
|
@@ -5445,6 +5445,33 @@ var index$2 = /*#__PURE__*/Object.freeze({
|
|
|
5445
5445
|
monkeyecxStorage: monkeyecxStorage_actions
|
|
5446
5446
|
});
|
|
5447
5447
|
|
|
5448
|
+
const seederReducer = (reducer) => {
|
|
5449
|
+
return (state, action) => {
|
|
5450
|
+
/* if (action.type === INIT || action.type === UPDATE) {
|
|
5451
|
+
const storageValue = localStorage.getItem('state');
|
|
5452
|
+
if (storageValue) {
|
|
5453
|
+
try {
|
|
5454
|
+
return JSON.parse(storageValue);
|
|
5455
|
+
} catch {
|
|
5456
|
+
localStorage.removeItem('state');
|
|
5457
|
+
}
|
|
5458
|
+
}
|
|
5459
|
+
} */
|
|
5460
|
+
const nextState = reducer(state, action);
|
|
5461
|
+
const data = nextState?.['shared-companies'];
|
|
5462
|
+
console.log('@#@@@@@');
|
|
5463
|
+
console.log(data);
|
|
5464
|
+
console.log('@#@@@@@');
|
|
5465
|
+
localStorage.setItem('state', JSON.stringify(nextState));
|
|
5466
|
+
return nextState;
|
|
5467
|
+
};
|
|
5468
|
+
};
|
|
5469
|
+
|
|
5470
|
+
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5471
|
+
__proto__: null,
|
|
5472
|
+
seederReducer: seederReducer
|
|
5473
|
+
});
|
|
5474
|
+
|
|
5448
5475
|
const featureKey = 'mecx-core-storage';
|
|
5449
5476
|
const adapter = createEntityAdapter({
|
|
5450
5477
|
selectId: (item) => {
|
|
@@ -5494,33 +5521,6 @@ var monkeyecxStorage_reducer = /*#__PURE__*/Object.freeze({
|
|
|
5494
5521
|
selectTotal: selectTotal
|
|
5495
5522
|
});
|
|
5496
5523
|
|
|
5497
|
-
const seederReducer = (reducer) => {
|
|
5498
|
-
return (state, action) => {
|
|
5499
|
-
/* if (action.type === INIT || action.type === UPDATE) {
|
|
5500
|
-
const storageValue = localStorage.getItem('state');
|
|
5501
|
-
if (storageValue) {
|
|
5502
|
-
try {
|
|
5503
|
-
return JSON.parse(storageValue);
|
|
5504
|
-
} catch {
|
|
5505
|
-
localStorage.removeItem('state');
|
|
5506
|
-
}
|
|
5507
|
-
}
|
|
5508
|
-
} */
|
|
5509
|
-
const nextState = reducer(state, action);
|
|
5510
|
-
const data = nextState?.[featureKey];
|
|
5511
|
-
console.log('@#@@@@@');
|
|
5512
|
-
console.log(data);
|
|
5513
|
-
console.log('@#@@@@@');
|
|
5514
|
-
localStorage.setItem('state', JSON.stringify(nextState));
|
|
5515
|
-
return nextState;
|
|
5516
|
-
};
|
|
5517
|
-
};
|
|
5518
|
-
|
|
5519
|
-
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5520
|
-
__proto__: null,
|
|
5521
|
-
seederReducer: seederReducer
|
|
5522
|
-
});
|
|
5523
|
-
|
|
5524
5524
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5525
5525
|
__proto__: null,
|
|
5526
5526
|
fromMonkeyecxSeeder: monkeyecxSeeder_reducer,
|