CJY0208/react-activation
Hack <KeepAlive /> for React observed · 2026-08-28
Health v2 · maintenance only
33/100
- Activity 22
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2555
- days_rel: 650
- days_push: 469
- n_releases_24m: 1
Adoption not part of the score
2029 stars · 151 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React library that implements Vue's <keep-alive /> component caching behavior, preserving component state when they are unmounted and remounted. It works via a hack implementation compatible with React 16-18, Preact, and SSR.
Use cases
- preserve component state when switching tabs in react-router
- cache form input values when navigating away and back
- implement closable tabs that keep their state like in Vue
- keep list scroll position and filters when returning to a page
- cache multi-step wizard state across route changes
When to choose
- you need Vue-style keep-alive state preservation in a React app
- you're building tabbed interfaces where each tab must retain its state
- you're on React 16/17/18 and need component caching without rewriting to hooks
When to avoid
- you use React.StrictMode or ReactDOMClient.createRoot without disabling autoFreeze
- you can wait for or use React 18's official <Offscreen /> support
- your project doesn't use Babel and you can't manage cacheKey manually
Facets
library · maturity active
state-management ui-components middleware frontend web-development keep-alive react component-caching tabs react-router ssr-compatible web-server nodejs
2 sources
- readme: https://github.com/CJY0208/react-activation · fetched 2026-08-28 · aace787f3b14
- registry_npm: https://registry.npmjs.org/react-activation · fetched 2026-08-29 · db81406805e5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| CJY0208/react-activation | main | 33 |
For agents
markdown · JSON · MCP: product_card(name="CJY0208/react-activation")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem