StructureBuilder/react-keep-alive
A component that maintains component state and avoids repeated re-rendering. observed · 2026-09-03
Health v2 · maintenance only
23/100
- Activity 0
- 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: 2740
- days_rel: n/a
- days_push: 1338
- n_releases_24m: 0
Adoption not part of the score
1005 stars · 108 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React library providing a KeepAlive component that preserves component state across unmounts, similar to Vue's keep-alive. It wraps components with a Provider to cache them and avoid repeated re-rendering, independent of React Router.
Use cases
- preserve component state when switching tabs in a React app
- avoid re-rendering expensive components on navigation
- implement Vue-style keep-alive caching in React
- cache form state when users navigate away and back
- keep list scroll position and filters alive across route changes
When to choose
- you need Vue-like keep-alive behavior in React
- you want caching that works without React Router
- you need CSS animations on cached components since it doesn't use display:none
When to avoid
- you're on React 18+ with modern alternatives available
- your components are cheap to re-render and caching adds complexity
- you need actively maintained support for the latest React versions
Facets
library · maturity maintenance
state-management ui-components caching frontend web-development browser react keep-alive component-caching performance-optimization typescript nodejs
2 sources
- readme: https://github.com/StructureBuilder/react-keep-alive · fetched 2026-09-03 · 72030fa60a86
- registry_npm: https://registry.npmjs.org/react-keep-alive · fetched 2026-08-29 · 10c77a3ca841
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| StructureBuilder/react-keep-alive | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="StructureBuilder/react-keep-alive")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem