Expected Behavior
No warnings
Current Behavior
Warning: setState(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.
Steps to Reproduce (for bugs)
- Log in to Github
- Check the console
Possible Solution
The issue is the Auth component, because this.setState is being called in the componentDidMount function.
Expected Behavior
No warnings
Current Behavior
Steps to Reproduce (for bugs)
Possible Solution
The issue is the Auth component, because
this.setStateis being called in thecomponentDidMountfunction.