Javascript – Why setting the state inside a fetch callback (doesn't) cause an infinite loop?
I have the following code snippet, and I expected it to result in an infinite loop due to a state update inside a fetch callback inside the body of the component without using 'useEffect'. However, it's not behaving as expected.…