@steroidsjs/core 3.0.29 → 3.0.30

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
@@ -266,7 +266,9 @@ function useList(config) {
266
266
  }, [dispatch, config.items, config.listId]);
267
267
  // Destroy
268
268
  (0, react_use_1.useUnmount)(function () {
269
- var autoDestroy = typeof config.autoDestroy === 'boolean' ? config.autoDestroy : exports.defaultConfig.autoDestroy;
269
+ var autoDestroy = typeof config.autoDestroy === 'boolean'
270
+ ? config.autoDestroy
271
+ : exports.defaultConfig.autoDestroy;
270
272
  if (autoDestroy) {
271
273
  dispatch([
272
274
  (0, list_2.listDestroy)(config.listId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.29",
3
+ "version": "3.0.30",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
package/reducers/list.js CHANGED
@@ -95,7 +95,8 @@ var reducerMap = (_a = {},
95
95
  },
96
96
  _a[list_1.LIST_DESTROY] = function (state, action) {
97
97
  delete state.lists[action.listId];
98
- return __assign(__assign({}, state), { lists: __assign({}, state.lists) });
98
+ delete state.selectedIds[action.listId];
99
+ return __assign(__assign({}, state), { lists: __assign({}, state.lists), selectedIds: __assign({}, state.selectedIds) });
99
100
  },
100
101
  _a[list_1.LIST_TOGGLE_ITEM] = function (state, action) {
101
102
  var _a;
@@ -126,6 +126,7 @@ export interface IGridColumn {
126
126
  percentageAttribute: string;
127
127
  }[];
128
128
  };
129
+ [key: string]: any;
129
130
  }
130
131
  /**
131
132
  * Grid