@luminati-io/uikit 3.9.1 → 3.9.2-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40280,7 +40280,7 @@ var Provider = function Provider(_ref3) {
40280
40280
  Cell: Cell
40281
40281
  };
40282
40282
  }, []);
40283
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(undefined),
40283
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
40284
40284
  _useState2 = _slicedToArray(_useState, 2),
40285
40285
  pageCount = _useState2[0],
40286
40286
  setPageCount = _useState2[1];
@@ -40291,19 +40291,17 @@ var Provider = function Provider(_ref3) {
40291
40291
  var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), _hiddenColumns);
40292
40292
  var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), _pinnedColumns);
40293
40293
  var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), _columnOrder);
40294
- var initialState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
40295
- return assign({}, _initialState, pageSize && {
40296
- pageSize: pageSize
40297
- }, hiddenColumns && {
40298
- hiddenColumns: hiddenColumns
40299
- }, pinnedColumns && {
40300
- pinnedColumns: pinnedColumns
40301
- }, columnOrder && {
40302
- columnOrder: columnOrder
40303
- }, selectedRowIds && {
40304
- selectedRowIds: selectedRowIds
40305
- });
40306
- }, [_initialState, pageSize, hiddenColumns, pinnedColumns, columnOrder, selectedRowIds]);
40294
+ var initialState = assign({}, _initialState, pageSize && {
40295
+ pageSize: pageSize
40296
+ }, hiddenColumns && {
40297
+ hiddenColumns: hiddenColumns
40298
+ }, pinnedColumns && {
40299
+ pinnedColumns: pinnedColumns
40300
+ }, columnOrder && {
40301
+ columnOrder: columnOrder
40302
+ }, selectedRowIds && {
40303
+ selectedRowIds: selectedRowIds
40304
+ });
40307
40305
  var table = react_table__WEBPACK_IMPORTED_MODULE_2__.useTable.apply(void 0, [Object.assign(_objectSpread({
40308
40306
  columns: columns,
40309
40307
  data: data,