DEV Community

Adam Zmenak
Adam Zmenak

Posted on

 

use-async-call - A React hook to manage the state and lifecycle of async data loading

Since hooks officially landed in React, I’ve been working on creating abstractions to manage the common task of loading and updating data from an API.

Today I’m releasing use-async-call, freely available under MIT license

This hook is has been battle tested at d1g1t Inc., and has lead to a reduction in boilerplate and fixed some difficult corner-case bugs around lifecycle management.

https://github.com/azmenak/use-async-call

Top comments (0)

16 Libraries You Should Know as a React Developer

Being a modern React developer is not about knowing just React itself. To stay competitive, it is highly recommended to explore the whole ecosystem. This article contains some of the most useful React component libraries to speed up your developer workflow.