@steroidsjs/core 2.2.99 → 2.2.102

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/hooks/useList.js CHANGED
@@ -246,7 +246,6 @@ function useList(config) {
246
246
  react_use_1.useUpdateEffect(function () {
247
247
  dispatch([
248
248
  list_2.listSetItems(config.listId, config.items),
249
- list_2.listLazyFetch(config.listId),
250
249
  ]);
251
250
  }, [dispatch, config.items, config.listId]);
252
251
  // Destroy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.99",
3
+ "version": "2.2.102",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "connected-react-router": "^6.9.1",
29
29
  "domready": "^1.0.8",
30
30
  "dot-prop-immutable": "^2.1.0",
31
- "fileup-core": "^1.2.2",
31
+ "fileup-core": "^1.2.4",
32
32
  "history": "^4.10.1",
33
33
  "intl-messageformat": "^9.11.0",
34
34
  "js-cookie": "^2.2.1",
package/reducers/list.js CHANGED
@@ -10,6 +10,11 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
+ to[j] = from[i];
16
+ return to;
17
+ };
13
18
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
19
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
20
  };
@@ -93,10 +98,10 @@ var reducerMap = (_a = {},
93
98
  var selectedIds = get_1["default"](state, ['selectedIds', action.listId]) || [];
94
99
  var index = selectedIds.indexOf(action.itemId);
95
100
  if (index === -1) {
96
- selectedIds.push(action.itemId);
101
+ selectedIds = __spreadArray(__spreadArray([], selectedIds), [action.itemId]);
97
102
  }
98
103
  else {
99
- selectedIds.splice(index, 1);
104
+ selectedIds = selectedIds.filter(function (selectedId) { return selectedId !== action.itemId; });
100
105
  }
101
106
  return __assign(__assign({}, state), { selectedIds: __assign(__assign({}, state.selectedIds), (_a = {}, _a[action.listId] = [].concat(selectedIds), _a)) });
102
107
  },