You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Please provide a working codepen (or any online example) I can check. At this point I can only assume that when you setHiddenContent your component changes children which triggers ReactHeight update, which calls onHeightReady and so on in a loop, thus you need to limit updates in your App instead (using setState or anything else that will not create new children for any new height that is probably even same)
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Code:
The text was updated successfully, but these errors were encountered: