79264707

Date: 2024-12-09 11:01:58
Score: 1.5
Natty:
Report link

Try passing an empty array to your useEffect. The dispatch function that you passed to the useEffect will be a new object in each re-render, which will cause repeated calls to the useEffect.

Note: I contribute to the state-machine-react library, which I find more readable and maintainable, for simple to medium-complexity projects.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gopakumar