react-crud-mobile 1.3.262 → 1.3.264

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.
@@ -1368,7 +1368,8 @@ function UIModal(props) {
1368
1368
  var _main$dialog, _theme$styles;
1369
1369
  var owner = props.scope;
1370
1370
  var _useState = useState(0),
1371
- index = _useState[0];
1371
+ index = _useState[0],
1372
+ setIndex = _useState[1];
1372
1373
  var dialog = owner.currentDialog;
1373
1374
  var _useState2 = useState(!Utils.isEmpty(dialog)),
1374
1375
  modalVisible = _useState2[0],
@@ -1379,6 +1380,9 @@ function UIModal(props) {
1379
1380
  if (!dialog) {
1380
1381
  return /*#__PURE__*/jsx(Fragment, {});
1381
1382
  }
1383
+ dialog.update = function () {
1384
+ setIndex(++index);
1385
+ };
1382
1386
  if (dialog.debug) console.log(dialog);
1383
1387
  if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
1384
1388
  return /*#__PURE__*/jsx(Fragment, {});