core icon indicating copy to clipboard operation
core copied to clipboard

fix: Unnecessary Account Tracker state update

Open tommasini opened this issue 1 year ago • 0 comments

Explanation

Unnecessary state update when the balance did not change at account tracker controller polling mechanism, which was causing unnecessary re renders

References

Changelog

@metamask/assets-controllers

  • <CHANGED>: Only updated the state if the balance changes
  • <CATEGORY>: Your change here

Checklist

  • [ ] I've updated the test suite for new or updated code as appropriate
  • [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

tommasini avatar Oct 22 '24 21:10 tommasini