@pdg/react-form 1.0.84 → 1.0.85

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.esm.js CHANGED
@@ -2797,10 +2797,13 @@ styleInject(css_248z$j);var FormTag = React__default.forwardRef(function (_a, re
2797
2797
  /********************************************************************************************************************
2798
2798
  * State - value
2799
2799
  * ******************************************************************************************************************/
2800
- var _c = useState(function () {
2801
- return new Set(getFinalValue(initValue || []));
2802
- }), valueSet = _c[0], setValueSet = _c[1];
2803
- var _d = useAutoUpdateState$1(initValue || [], getFinalValue), value = _d[0], setValue = _d[1];
2800
+ var _c = useState(function () { return getFinalValue(initValue || []); }), value = _c[0], setValue = _c[1];
2801
+ var _d = useState(function () { return new Set(getFinalValue(initValue || [])); }), valueSet = _d[0], setValueSet = _d[1];
2802
+ useFirstSkipEffect$1(function () {
2803
+ setValue(getFinalValue(initValue || []));
2804
+ setValueSet(new Set(getFinalValue(initValue || [])));
2805
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2806
+ }, [initValue]);
2804
2807
  useFirstSkipEffect$1(function () {
2805
2808
  if (error)
2806
2809
  validate(value);