Update Radio's OptionFn effect deps to fix infinite loop. (#2758)
This commit is contained in:
@@ -426,7 +426,7 @@ function OptionFn<
|
||||
|
||||
useIsoMorphicEffect(
|
||||
() => actions.registerOption({ id, element: internalOptionRef, propsRef }),
|
||||
[id, actions, internalOptionRef, props]
|
||||
[id, actions, internalOptionRef, propsRef]
|
||||
)
|
||||
|
||||
let handleClick = useEvent((event: ReactMouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user