rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Granular Subscription State

Open palacharlanarendra opened this issue 3 months ago • 6 comments

This RFC proposes a way to reduce unnecessary re-renders by allowing components to subscribe only to the specific parts of state they actually use. The idea is to track property access within a selector and re-render only the components that depend on the changed value, rather than re-rendering entire subtrees.

The goal is to improve performance and developer experience in large React applications without changing existing mental models or requiring heavy memoization. The proposal outlines how this could work using a dependency map and a useGranular hook that integrates with useSyncExternalStore.

I’m opening this to start a discussion on whether this direction aligns with React’s long-term performance goals, and whether it makes sense as an experimental API or an external package first. Feedback on potential pitfalls, API shape, or integration considerations would be appreciated.

File added:

text/0000-granular-subscriptions.md

Looking forward to thoughts and discussion.

palacharlanarendra avatar Nov 23 '25 17:11 palacharlanarendra