Skip to content

Commit 29afedf

Browse files
committed
feat: remove redundant code
1 parent 579c3da commit 29afedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

primitives/filed-form /src/Field.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ function Field<Values = any>(props: InternalFieldProps<Values>) {
120120

121121
useEffect(() => {
122122
const unregister = registerField({
123-
changeValue: (newValue, isShouldUpdate) => {
124-
if (!isShouldUpdate || !normalizedChangedRef.current) return;
123+
changeValue: newValue => {
124+
if (!normalizedChangedRef.current) return;
125125

126126
normalizedChangedRef.current = false;
127127

0 commit comments

Comments
 (0)