Skip to content

Commit

Permalink
fix: infinit loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Jul 12, 2022
1 parent 0252b04 commit 0c3a3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export const Form = React.forwardRef(function Form(

useHashEffect(() => {
reset({ ...cleanInputArray(value, defaultValues, flow, schema) })
}, [value, schema, flow, defaultValues])
}, [value, schema, flow])


const functionalProperty = <T,>(entry: string, prop: T | ((param: { rawValues: { [x: string]: any }, value: any, informations?: Informations, getValue: (key: string) => any }) => T), informations?: Informations, error?: { [x: string]: any }): T => {
Expand Down

0 comments on commit 0c3a3d9

Please sign in to comment.