Skip to content

Commit

Permalink
fix useMemo dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fabsor committed Feb 10, 2024
1 parent 181892d commit f41d598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export function useForm<DataType>(
dependencies?: DependencyList,
): Form<DataType> {
// The form only needs to be created every time any of the inputs change.
return useMemo(creator, dependencies);
return useMemo(creator, dependencies ?? []);
}

0 comments on commit f41d598

Please sign in to comment.