Skip to content

Latest commit

 

History

History

readme.md

Async Handler

NPM npm (scoped) npm bundle size

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