DEV Community

Adam Zmenak
Adam Zmenak

Posted on

2

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay