@unleashit/async-handler
v2.0.4
Published
Simple HOC that handles loading, error and no result states of data fetching.
Downloads
15
Maintainers
Readme
Async Handler
HOC that takes an async function and returns views for loading, no-data and error states. It accepts an optional method to check a cache before the async function is run.
This component has been deprecated. React Query is a better featured and hook based alternative.
Install
npm install @unleashit/async-handler
Documentation
https://unleashit.github.io/npm-library/components/asyncHandler
Demo
https://npm-library-demo.vercel.app/async-handler