Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Cannot update a component (StaffLogin) while rendering a different component (Context.Consumer). #31

Open
joegasewicz opened this issue May 26, 2021 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@joegasewicz
Copy link
Owner

Warning: Cannot update a component (StaffLogin) while rendering a different component (Context.Consumer).

Warning: Cannot update a component (`StaffLogin`) while rendering a different component (`Context.Consumer`). To locate the bad setState() call inside `Context.Consumer`, follow the stack trace as described in https://fb.me/setstate-in-render
    in x (created by StaffLogin)
    in StaffLogin (created by LoginStaff)
    in div (created by styled.div)
    in styled.div (created by StyledCard)
    in StyledCard (created by LoginStaff)
    in div (created by styled.div)
    in styled.div (created by LoginStaff)
    in div (created by styled.div)
    in styled.div (created by StyledGrid)
    in StyledGrid (created by LoginStaff)
    in div (created by LoginStaff)
    in LoginStaff (created by Context.Consumer)
    in Route (created by MainRouting)
    in Switch (created by MainRouting)
    in MainRouting (created by App)
    in StoreContextProvider (created by App)
    in Be (created by App)
    in Router (created by App)
    in div (created by App)
    in App
@joegasewicz joegasewicz added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels May 26, 2021
@joegasewicz
Copy link
Owner Author

Have a look at:

setOAuthState(true);

setServerResponseState(serverResponseProps);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant