Skip to content

Commit 0658cbf

Browse files
committed
for illustrative purposes
1 parent a22988a commit 0658cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-form/src/useForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function useForm<
216216
*/
217217
useIsomorphicLayoutEffect(() => {
218218
formApi.update(opts)
219-
})
219+
}, [opts, formApi])
220220

221221
return formApi
222222
}

0 commit comments

Comments
 (0)