Performance Issues

We'll cover the following...

The issue

React massively optimizes Context under the hood to avoid unnecessary re-renders of components or avoid lengthy component hierarchies. Comparing the old value of the Context Provider with the new one, Consumer components are only re-rendered if the value in the Context Provider has changed.

While this may sound, it creates a minor issue that we need to look out for in our React app. ...