react-crud-mobile 1.3.33 → 1.3.35

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.
@@ -1595,17 +1595,19 @@ function UIElement(props) {
1595
1595
  var ctx = React.useContext(CrudContext);
1596
1596
  var theme = reactCrudUtils.Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1597
1597
  var crud = reactCrudUtils.Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1598
- var scope = reactCrudUtils.ScopeUtils.create(_extends({
1599
- crud: crud
1600
- }, props, {
1601
- theme: theme
1602
- }));
1603
- var _useState = React.useState(0),
1604
- index = _useState[0],
1605
- setIndex = _useState[1];
1606
- var _useState2 = React.useState(null),
1607
- error = _useState2[0],
1608
- setError = _useState2[1];
1598
+ var _useState = React.useState(reactCrudUtils.ScopeUtils.create(_extends({
1599
+ crud: crud
1600
+ }, props, {
1601
+ theme: theme
1602
+ }))),
1603
+ scope = _useState[0];
1604
+ var _useState2 = React.useState(0),
1605
+ index = _useState2[0],
1606
+ setIndex = _useState2[1];
1607
+ var _useState3 = React.useState(null),
1608
+ error = _useState3[0],
1609
+ setError = _useState3[1];
1610
+ scope.compile(props);
1609
1611
  crud = scope.crud;
1610
1612
  var options = scope.getOptions();
1611
1613
  var original = scope.original;