Update Radio's OptionFn effect deps to fix infinite loop. (#2758)

This commit is contained in:
zakstucke
2023-09-19 11:24:59 +02:00
committed by GitHub
parent f016dc51db
commit 2a64c131bd
@@ -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) => {