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
I came to point where snapToPoint is called with drawerRef.current as undefined.
In provided sandbox there is commented out useEffect that triggers forced re-render.
Adding drawerRef.current as dependency instead of drawerRef is fixing but any useRef value as dependency is kinda anti-pattern.
The text was updated successfully, but these errors were encountered:
Codesandbox:
https://codesandbox.io/p/sandbox/drawer-snap-points-forked-hh78xy
I came to point where
snapToPoint
is called withdrawerRef.current
asundefined
.In provided sandbox there is commented out
useEffect
that triggers forced re-render.Adding
drawerRef.current
as dependency instead ofdrawerRef
is fixing but anyuseRef
value as dependency is kinda anti-pattern.The text was updated successfully, but these errors were encountered: