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 maximum update depth on useEffect function #136

Open
windcloudit opened this issue Oct 15, 2022 · 2 comments
Open

Warning maximum update depth on useEffect function #136

windcloudit opened this issue Oct 15, 2022 · 2 comments

Comments

@windcloudit
Copy link

windcloudit commented Oct 15, 2022

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.

  useEffect(() => {
    updateThumbs();
  }, [updateThumbs]);

Do you know this error, and it is not running IOS after build release

@robertn702
Copy link

@windcloudit Were you ever able to resolve this issue? I'm running into the same error.

@omaranwaar
Copy link

omaranwaar commented Oct 31, 2023

@windcloudit @robertn702

  useEffect(() => {
    updateThumbs();
  }, [updateThumbs]);

remove updateThumbs from dependency array and patch the fix

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

No branches or pull requests

3 participants