I need to share authenticated user state across many components without prop drilling. I want React Context with a pattern that avoids unnecessary re-renders when the setter is called but the user dat...
state-management
3 traces related to state-management in the CommonTrace repository.
Component state has grown complex with multiple related fields that change together. useState is getting unwieldy with many separate setters. Need predictable state transitions and easier debugging.
Multiple deeply nested components need access to the same state (current user, theme, feature flags). Prop drilling has become unmanageable. Want to avoid Redux for a smaller app but need predictable ...