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
There is a version of useState floating around the internet that checks a "is mounted" ref to essentially by default check if the component is mounted before updating the state object. We should use that it would clean up the test output and probably iron out some hidden issues with not checking for component mount. Is more elegant than making a boolean in each useEffect.
The text was updated successfully, but these errors were encountered:
There is a version of
useState
floating around the internet that checks a "is mounted" ref to essentially by default check if the component is mounted before updating the state object. We should use that it would clean up the test output and probably iron out some hidden issues with not checking for component mount. Is more elegant than making a boolean in eachuseEffect
.The text was updated successfully, but these errors were encountered: