core
core copied to clipboard
Provide a way to track identical controller state updates
In some cases, controllers attempt to update the state but no change is actually made to state. This causes unnecessary re-renders in clients, which can cause performance issues, especially on mobile.
We need a way to track this so that we more information on how to address this issue.
Here is a draft PR which adds an EventAnalyzer class to controller-utils: https://github.com/MetaMask/core/pull/5823. We should take a closer look at this.