ywana-core8 0.0.157 → 0.0.158

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.
@@ -4293,7 +4293,8 @@ var TableSelector = function TableSelector(props) {
4293
4293
  actions = _props$actions === void 0 ? [] : _props$actions;
4294
4294
 
4295
4295
  var _useContext2 = useContext(PageContext),
4296
- pageContext = _useContext2[0];
4296
+ pageContext = _useContext2[0],
4297
+ setPageContext = _useContext2[1];
4297
4298
 
4298
4299
  var all = pageContext.all,
4299
4300
  checked = pageContext.checked;
@@ -4315,7 +4316,15 @@ var TableSelector = function TableSelector(props) {
4315
4316
  label: label,
4316
4317
  raised: true,
4317
4318
  action: function action() {
4318
- return _action(checked);
4319
+ return _action(checked, pageContext, function () {
4320
+ try {
4321
+ return Promise.resolve(pageContext.load()).then(function () {
4322
+ setPageContext(Object.assign({}, pageContext));
4323
+ });
4324
+ } catch (e) {
4325
+ return Promise.reject(e);
4326
+ }
4327
+ });
4319
4328
  }
4320
4329
  });
4321
4330
  });