DEV Community

Discussion on: Homebrew React Hooks: useAsyncEffect Or How to Handle Async Operations with useEffect

Collapse
 
frfancha profile image
Fred • Edited

Very useful! Busy to transfer a huge app from angularjs to react and I have implemented your strategy in our fetch calls. Thanks for sharing practical info!
I have also added "sleep" in the API of the server sering data to the app (c# web.api) to test all kind of scenarios and everything was working exactly as expected ;-)