Skip to content

Commit

Permalink
fix: add missing useEffect dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiaraujo012 committed Aug 10, 2024
1 parent 48038ca commit 8fd83a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AutocompleteController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const AutocompleteController = <
onChange(optionValueAccessor(optionFound));
}
}
}, [formValue, optionValueAccessor, options]);
}, [formValue, optionValueAccessor, options, onChange]);

/**
* Render
Expand Down

0 comments on commit 8fd83a4

Please sign in to comment.