core icon indicating copy to clipboard operation
core copied to clipboard

Provide a way to track identical controller state updates

Open mcmire opened this issue 8 months ago • 1 comments

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.

mcmire avatar Jun 17 '25 19:06 mcmire

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.

mcmire avatar Jun 17 '25 19:06 mcmire