# pmndrs/suspend-react

🚥 Async/await for React components

Repository: https://github.com/pmndrs/suspend-react
Canonical: https://ross.abutalabs.com/products/suspend-react
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2023-10-24T15:09:56+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1765, "days_push": 1044, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1410, forks 24 (observed 2026-08-28T04:04:38.845118+00:00)

## What it is
A small React library that integrates async operations into React Suspense, letting components read promise results synchronously while pending and error states are handled by parent Suspense/error boundaries. It includes a cross-component cache keyed by dependencies, with optional time-based invalidation.

## Use cases
- fetch data in react components with suspense
- cache async results across the component tree
- preload data before rendering react components
- handle loading and error states at a parent level
- await promises inside react render

## When to avoid
- you need a full data-fetching library with mutations and refetching
- your project doesn't use React Suspense
- you need server-side data fetching with request deduplication beyond simple caching

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, caching, middleware
- domain: web-development, frontend
- platform: browser
- tags: react, suspense, async, promise-cache, hooks, nodejs

## Member repositories
- pmndrs/suspend-react (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.845118+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:29.580240+00:00, confidence not recorded.
  - readme: https://github.com/pmndrs/suspend-react (fetched 2026-08-28T04:04:38.845118+00:00, sha 53ebe7dcaf5e)
  - registry_npm: https://registry.npmjs.org/suspend-react (fetched 2026-08-29T11:51:54.833983+00:00, sha 3d03f3f62c33)
- Data as of 2026-08-30T08:39:29.467469+00:00.
