I am using a context provider in React to share data across several components. However since a value gets changed from one of my subcomponents, it rerenders all of my other