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've added this great package to an existing project where "componentWillUnmount" was used to clean all kinds of resources / listeners.
Problem is, now, in my flow, an action occurs, which navigates the user outside of the Component, but a re-render also happens. Usually, without the animation, the component would immediately run "componentWillUnmount" and release all the need for re-renders..
But, now, during the animation bad / unexpcted things happen.
I suggest to add some hook / callback to each such "transitioned" component (e.g. "transitionStarted") to allow it to cleanup sooner, instead of using componentWillUnmount.
The text was updated successfully, but these errors were encountered:
Hi,
I've added this great package to an existing project where "componentWillUnmount" was used to clean all kinds of resources / listeners.
Problem is, now, in my flow, an action occurs, which navigates the user outside of the Component, but a re-render also happens. Usually, without the animation, the component would immediately run "componentWillUnmount" and release all the need for re-renders..
But, now, during the animation bad / unexpcted things happen.
I suggest to add some hook / callback to each such "transitioned" component (e.g. "transitionStarted") to allow it to cleanup sooner, instead of using componentWillUnmount.
The text was updated successfully, but these errors were encountered: