From 8fd83a4935df2b2d74ec1a6d83530433768dc734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Ara=C3=BAjo?= Date: Sat, 10 Aug 2024 17:07:18 +0100 Subject: [PATCH] fix: add missing useEffect dep --- src/components/AutocompleteController.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AutocompleteController.tsx b/src/components/AutocompleteController.tsx index 5b47076..f5a568e 100644 --- a/src/components/AutocompleteController.tsx +++ b/src/components/AutocompleteController.tsx @@ -112,7 +112,7 @@ export const AutocompleteController = < onChange(optionValueAccessor(optionFound)); } } - }, [formValue, optionValueAccessor, options]); + }, [formValue, optionValueAccessor, options, onChange]); /** * Render