rn-range-slider icon indicating copy to clipboard operation
rn-range-slider copied to clipboard

Warning maximum update depth on useEffect function

Open windcloudit opened this issue 3 years ago • 2 comments
trafficstars

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

windcloudit avatar Oct 15 '22 05:10 windcloudit

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

robertn702 avatar Jan 28 '23 06:01 robertn702

@windcloudit @robertn702

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

remove updateThumbs from dependency array and patch the fix

omaranwaar avatar Oct 31 '23 18:10 omaranwaar