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.
package/dist/index.cjs CHANGED
@@ -4300,7 +4300,8 @@ var TableSelector = function TableSelector(props) {
4300
4300
  actions = _props$actions === void 0 ? [] : _props$actions;
4301
4301
 
4302
4302
  var _useContext2 = React.useContext(PageContext),
4303
- pageContext = _useContext2[0];
4303
+ pageContext = _useContext2[0],
4304
+ setPageContext = _useContext2[1];
4304
4305
 
4305
4306
  var all = pageContext.all,
4306
4307
  checked = pageContext.checked;
@@ -4322,7 +4323,15 @@ var TableSelector = function TableSelector(props) {
4322
4323
  label: label,
4323
4324
  raised: true,
4324
4325
  action: function action() {
4325
- return _action(checked);
4326
+ return _action(checked, pageContext, function () {
4327
+ try {
4328
+ return Promise.resolve(pageContext.load()).then(function () {
4329
+ setPageContext(Object.assign({}, pageContext));
4330
+ });
4331
+ } catch (e) {
4332
+ return Promise.reject(e);
4333
+ }
4334
+ });
4326
4335
  }
4327
4336
  });
4328
4337
  });