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 had a question regarding the connectToStore component. It is doing a this.setState on componentDidMount. This will cause the component to execute render twice when it gets mounted.
Was this intended? What was the reason for running the this.setState on componentDidMount when getInitialState already sets the state?
I'm genuinely curious to know if I'm missing some lifecycle knowledge in the React lifecycle.
The text was updated successfully, but these errors were encountered:
I had a question regarding the connectToStore component. It is doing a this.setState on componentDidMount. This will cause the component to execute render twice when it gets mounted.
Was this intended? What was the reason for running the this.setState on componentDidMount when getInitialState already sets the state?
I'm genuinely curious to know if I'm missing some lifecycle knowledge in the React lifecycle.
The text was updated successfully, but these errors were encountered: