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
The dialog only centers when the component are updated, this is hapenning because the calculation only happens in componentDidUpdate, and not when the component is mounted (componentDidMount).
I guess that a fix for that would be to create a new function specific to perform this calculation, and later calling this function from componentDidMount and componentDidUpdate.
The text was updated successfully, but these errors were encountered:
The dialog only centers when the component are updated, this is hapenning because the calculation only happens in componentDidUpdate, and not when the component is mounted (componentDidMount).
I guess that a fix for that would be to create a new function specific to perform this calculation, and later calling this function from componentDidMount and componentDidUpdate.
The text was updated successfully, but these errors were encountered: