react-crud-mobile 1.3.261 → 1.3.263

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.
@@ -1377,17 +1377,21 @@ function UIModal(props) {
1377
1377
  var _main$dialog, _theme$styles;
1378
1378
  var owner = props.scope;
1379
1379
  var _useState = React.useState(0),
1380
- index = _useState[0];
1380
+ index = _useState[0],
1381
+ setIndex = _useState[1];
1381
1382
  var dialog = owner.currentDialog;
1382
1383
  var _useState2 = React.useState(!reactCrudUtils.Utils.isEmpty(dialog)),
1383
1384
  modalVisible = _useState2[0],
1384
1385
  setModalVisible = _useState2[1];
1385
- //v1
1386
+ //v2
1386
1387
  var curr = dialog == null ? void 0 : dialog.crud;
1387
1388
  var main = reactCrudUtils.ViewUtils.getCrud('view');
1388
1389
  if (!dialog) {
1389
1390
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
1390
1391
  }
1392
+ dialog.update = function () {
1393
+ setIndex(++index);
1394
+ };
1391
1395
  if (dialog.debug) console.log(dialog);
1392
1396
  if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
1393
1397
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});