@sheinx/hooks 3.1.10 → 3.1.12
Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ var useForm = function useForm(props) {
|
|
57
57
|
removeArr: new Set(),
|
58
58
|
names: new Set(),
|
59
59
|
submitLock: false,
|
60
|
-
value: props.value || emptyObj,
|
60
|
+
value: (0, _utils.deepClone)(props.value) || emptyObj,
|
61
61
|
errors: {},
|
62
62
|
serverErrors: {},
|
63
63
|
lastValue: props.value || emptyObj,
|
@@ -48,7 +48,7 @@ var useForm = function useForm(props) {
|
|
48
48
|
removeArr: new Set(),
|
49
49
|
names: new Set(),
|
50
50
|
submitLock: false,
|
51
|
-
value: props.value || emptyObj,
|
51
|
+
value: deepClone(props.value) || emptyObj,
|
52
52
|
errors: {},
|
53
53
|
serverErrors: {},
|
54
54
|
lastValue: props.value || emptyObj,
|