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
When the user hovers the cells there is lots of hide timeouts fired and if the user navigates to another page (ReactTooltip is being unmounted) the timeouts are start firing and throws the errors into console:
I see that it happens because of setState in timeout callback:
hideTooltip(){const{delayHide}=this.stateclearTimeout(this.delayShowLoop)setTimeout(()=>{this.setState({// ← component is unmounted when the callback firedshow: false})this.removeScrollListener()},parseInt(delayHide,10))}
So I gonna to introduce delayHideLoop variable to store the hide timeout id and clear it when the component is unmounting
The text was updated successfully, but these errors were encountered:
I have a component with lots of active cells with tooltips.Tooltips are initialized with 3 sec hide delay:
When the user hovers the cells there is lots of hide timeouts fired and if the user navigates to another page (ReactTooltip is being unmounted) the timeouts are start firing and throws the errors into console:
I see that it happens because of
setState
in timeout callback:So I gonna to introduce
delayHideLoop
variable to store the hide timeout id and clear it when the component is unmountingThe text was updated successfully, but these errors were encountered: