{"library":"async-fetch","type":"library","category":null,"description":"A React hook for async fetch requests with built-in state management, cancellation, and polling. Current stable version is 0.4.0. Provides a simple, hook-based API for making HTTP requests with auto-fetch on mount, manual triggering, polling, and request cancellation. Ships TypeScript definitions. Key differentiators: minimal API surface, built-in polling, and cancellation via AbortController. Suitable for React 16+ projects needing a lightweight alternative to more complex data-fetching libraries like SWR or React Query.","language":"javascript","status":"active","version":"0.4.0","tags":["javascript","typescript","utils","utilities","esm","cjs"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install async-fetch","imports":["import useAsyncFetch from 'async-fetch'","const useAsyncFetch = require('async-fetch').default","import type { AsyncFetchOptions } from 'async-fetch'"]},{"cmd":"yarn add async-fetch","imports":[]},{"cmd":"pnpm add async-fetch","imports":[]}],"homepage":"https://github.com/nameer-rizvi/async-fetch#readme","github":"https://github.com/nameer-rizvi/async-fetch","docs":null,"changelog":null,"pypi":null,"npm":"async-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}