dai-shi/use-context-selector
React useContextSelector hook in userland observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 86
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2616
- days_rel: n/a
- days_push: 86
- n_releases_24m: 0
Adoption not part of the score
2961 stars · 62 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small React library providing a useContextSelector hook in userland, allowing components to select parts of a context value to avoid unnecessary re-renders. It emulates the proposed React Context selector API with support for Concurrent React.
Use cases
- avoid re-renders when using React Context
- select specific fields from context value in a component
- replace prop drilling with performant context
- use context with concurrent React rendering
- optimize large React apps with shared context state
When to choose
- you specifically need context-selector semantics matching React's concurrent behavior
- you want a drop-in userland implementation of the proposed useContextSelector RFC
- you're a library author needing selector-based context in a peer dependency
When to avoid
- you only want to avoid re-renders and don't care about context semantics - prefer Zustand or useSyncExternalStore
- you want a full state management solution rather than a context enhancement
- you can't add peer dependencies like scheduler
Facets
library · maturity active
state-management frontend-framework frontend web-development performance browser react react-hooks react-context context-selector re-render-optimization concurrent-react nodejs
2 sources
- readme: https://github.com/dai-shi/use-context-selector · fetched 2026-08-28 · 65ceb67f6d55
- registry_npm: https://registry.npmjs.org/use-context-selector · fetched 2026-08-29 · 962f96ae6619
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dai-shi/use-context-selector | main | 71 |
For agents
markdown · JSON · MCP: product_card(name="dai-shi/use-context-selector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem