Skip to content

Remove warning from Auth component #384

@solkaz

Description

@solkaz

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)

  1. Log in to Github
  2. Check the console

Possible Solution

The issue is the Auth component, because this.setState is being called in the componentDidMount function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions