0

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.

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
  • 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
  • 1
    Does 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 Answers1

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.