react-crud-mobile 1.3.33 → 1.3.34

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.
@@ -1587,17 +1587,19 @@ function UIElement(props) {
1587
1587
  var ctx = useContext(CrudContext);
1588
1588
  var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1589
1589
  var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1590
- var scope = ScopeUtils.create(_extends({
1591
- crud: crud
1592
- }, props, {
1593
- theme: theme
1594
- }));
1595
- var _useState = useState(0),
1596
- index = _useState[0],
1597
- setIndex = _useState[1];
1598
- var _useState2 = useState(null),
1599
- error = _useState2[0],
1600
- setError = _useState2[1];
1590
+ var _useState = useState(ScopeUtils.create(_extends({
1591
+ crud: crud
1592
+ }, props, {
1593
+ theme: theme
1594
+ }))),
1595
+ scope = _useState[0];
1596
+ var _useState2 = useState(0),
1597
+ index = _useState2[0],
1598
+ setIndex = _useState2[1];
1599
+ var _useState3 = useState(null),
1600
+ error = _useState3[0],
1601
+ setError = _useState3[1];
1602
+ scope.compile(props);
1601
1603
  crud = scope.crud;
1602
1604
  var options = scope.getOptions();
1603
1605
  var original = scope.original;