Many times this error is occurring in my project. When facing this error, I just delete my code. I'm not understanding why this error would happen.
Asked
Active
Viewed 336 times
0
-
It's same as this one I guess, you can check answers here https://stackoverflow.com/questions/55265604/uncaught-invariant-violation-too-many-re-renders-react-limits-the-number-of-re – Shankar May 08 '22 at 10:06
-
1Does this answer your question? [Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop](https://stackoverflow.com/questions/55265604/uncaught-invariant-violation-too-many-re-renders-react-limits-the-number-of-re) – Stephen Ostermiller May 08 '22 at 11:03
1 Answers
0
Probably, the each render you are updating the state and it causes infinite re-render. We could help you if you will share your code.

Krystian Sztadhaus
- 466
- 1
- 8