You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix React warning "Unexpected return value from a callback ref" in `useComposedRef`
6
-
7
-
The `composeRefs` function was returning a cleanup function, which violates React's rule that callback refs should not return functions. This fix ensures that `composeRefs` returns `undefined` instead, preventing the warning and potential crashes when callback refs are composed.
0 commit comments