From a34373d9be1c96ca69df5f0f6de8f775692dbc22 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Fri, 23 Feb 2024 10:16:31 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20`value`=20from?= =?UTF-8?q?=20`useCallback`=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/shared/SegmentedControls/SegmentedControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.tsx b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.tsx index c1111723..f96fe8c2 100644 --- a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.tsx +++ b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.tsx @@ -71,7 +71,7 @@ export function SegmentedControls({ if (!option) return; onChange?.(option); }, - [value, onChange], + [onChange], ); return (