Skip to content
New issue

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

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

Already on GitHub? # to your account

Warning due to using setState within useEffect #5

Open
zmaupin opened this issue Apr 2, 2020 · 0 comments
Open

Warning due to using setState within useEffect #5

zmaupin opened this issue Apr 2, 2020 · 0 comments

Comments

@zmaupin
Copy link

zmaupin commented Apr 2, 2020

Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.

Here is my test app:
https://github.com/zmaupin/my-app-graphql

Can you point out what I'm doing wrong here? I imagine this works for you and I did something wrong.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant