I think you will get and infinite loop if you try to use makeRequest inside useEffect, because the returning function from your custom change will trigger another render and so on…
I think you will get and infinite loop if you try to use makeRequest inside useEffect, because the returning function from your custom change will trigger another render and so on…