KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using React Context to share auth state across my app. Every time the token refreshes, every component that consumes the context re-renders even if they only care about the user object, not the token. I've tried splitting into two contexts but now I have provider hell. Is there a selector pattern like Redux?
Tags (comma-separated)
Save Edits
Cancel