It's crash after few minutes. when I'm using useEffect without dependencies #999
Replies: 1 comment 1 reply
-
This behavior is expected when setting a state inside of useEffect, as each state update triggers useEffect again. This is how React works and not a Sandpack issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when I am using useEffect without dependencies , and state will change each time then , It will crash page is not reload and changes will reflect after some time if it run continuously 5 to 6 minute then changes will not reflect .it takes lot of time.
here is my code :

how I stop it before it crashed..
Beta Was this translation helpful? Give feedback.
All reactions