🐛 fix: remove value
from useCallback
dependency
This commit is contained in:
parent
99be851046
commit
a34373d9be
@ -71,7 +71,7 @@ export function SegmentedControls<T extends string = string>({
|
|||||||
if (!option) return;
|
if (!option) return;
|
||||||
onChange?.(option);
|
onChange?.(option);
|
||||||
},
|
},
|
||||||
[value, onChange],
|
[onChange],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user