{"adoption": {"forks": 47, "observed_at": "2026-08-28T04:03:55.841400+00:00", "stars": 1189}, "canonical_url": "https://ross.abutalabs.com/products/react-async-hook", "card": {"archived": false, "artifact_type": "library", "description": "React hook to handle any async operation in React components, and prevent race conditions", "domain": ["web-development", "frontend", "developer-tools"], "enriched": true, "function": ["state-management", "http-client", "middleware"], "health_score": 20, "homepage": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react", "language": "TypeScript", "license": null, "license_family": "other", "maturity": "maintenance", "member_repos": ["slorber/react-async-hook"], "name": "slorber/react-async-hook", "platform": ["cross-platform"], "pushed_at": "2023-07-08T12:55:35+00:00", "repo": "slorber/react-async-hook", "stars": 1189, "tags": ["react", "react-hooks", "async", "race-conditions", "fetch", "typescript", "useasync", "abortion-controller", "cancellation", "nodejs", "web-server"], "topics": ["hooks"], "urls": [], "use_cases": ["fetch data in react components without race conditions", "handle async mutations with loading state in react", "cancel stale api requests when params change in react", "refetch data when dependencies change with a react hook", "manage promise state in react native apps", "prevent outdated search results from overwriting newer ones in react"], "what_it_is": "A tiny, feature-complete React hook library for handling async operations in components. It provides useAsync, useAsyncCallback, and useAsyncAbortable hooks that manage loading state, cancellation, and race condition prevention.", "when_to_avoid": ["you need caching, retries, or a full data-fetching framework like react-query or swr", "you rely on react server components or suspense-first data fetching", "you need a library with active development and recent releases", "you want built-in devtools or cache invalidation features"], "when_to_choose": ["you want a tiny, zero-dependency alternative to react-query or swr for simple async needs", "you need fine-grained control over async state and race condition handling", "you work with react or react-native and want stable callbacks and abortable fetches", "you want a feature-complete library that will not grow in size"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/react-async-hook", "repo": "slorber/react-async-hook", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:55.841400+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:23:20.998201+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "360ab4ab952c4bdc2394156908c3a7b42f092fd8e57d25cd6d39565e4dea8203", "fetched_at": "2026-08-28T04:03:55.841400+00:00", "kind": "readme", "missing": false, "url": "https://github.com/slorber/react-async-hook"}, {"content_hash": "a248bef87b1c5537227afe5a6177d8efd4f7552c0e9f0c75ac33c878ec98f801", "fetched_at": "2026-08-29T12:30:28.616605+00:00", "kind": "homepage", "missing": false, "url": "https://sebastienlorber.com/handling-api-request-race-conditions-in-react"}, {"content_hash": "095e9097ee9d802845e3a16d489cf4146fcc0f869f037957b47eb9935d981776", "fetched_at": "2026-08-29T12:30:28.619830+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/react-async-hook"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2867, "days_push": 1152, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}