🐛 fix: remove value from useCallback dependency

This commit is contained in:
Wahyu Kurniawan 2024-02-23 10:16:31 +07:00
parent 99be851046
commit a34373d9be
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33

View File

@ -71,7 +71,7 @@ export function SegmentedControls<T extends string = string>({
if (!option) return;
onChange?.(option);
},
[value, onChange],
[onChange],
);
return (