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
setState callback fires after changes have been flushed to the DOM. Since they were never flushed, it was never called.
and it seems be true
The second (optional) parameter is a callback function that will be executed once setState is completed, even if the component is not re-rendered (e.g. when shouldComponentUpdate() returns false). However, if the component is unmounted before the callback is called, it won't be called later anymore. You can handle such situations in the componentWillUnmount() method.
The text was updated successfully, but these errors were encountered:
In this issue, facebook/react#6320
and it seems be true
The text was updated successfully, but these errors were encountered: