Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilag committed Nov 5, 2021
1 parent 3d49831 commit 2ccbcab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/FormProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,15 @@ export function useField<D = any, E = any>(props: IFieldProps<D>) {
return val;
});
}
}, [initializeFieldValue, initialValues.version, atomValue.initVer]);
}, [
initializeFieldValue,
initialValues.version,
atomValue.initVer,
defaultValue,
validate,
atomValue.validate,
setAtomValue,
]);

useEffect(() => {
return () => {
Expand Down Expand Up @@ -198,7 +206,7 @@ export function useField<D = any, E = any>(props: IFieldProps<D>) {
} as Partial<IFieldAtomValue>)
);
},
[otherParams, validate, ancestors, name, setAtomValue]
[otherParams, validate, setAtomValue]
),
error: touched ? error : undefined,
onBlur: useCallback(
Expand Down

0 comments on commit 2ccbcab

Please sign in to comment.