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
Call setProps only if Tooltip component is not mounted (#1011)
Previously we were getting errors due to uncancelled timers not getting
cleaned up properly when the component unmounted. This resulted in a
delayed call to setProps and an error.
Unfortunately cancelling the timeouts directly appears to be
challenging, so this change introduces a simple `isMountedRef` which is
used a guard on calls to setProps.
0 commit comments