admin管理员组文章数量:1390642
I am new to Redux and am trying to diagnose some performance issues in an application. My understanding is that the return of mapStateToProps
will be shallow-compared with its previous return and trigger a rerender if there's a difference.
Many of our mapStateToProps
functions return objects with dozens of entries and I wonder if some of those are no longer used by the component. Typescript does not complain if an object has additional entries.
Is there a way to detect any mapStateToProps
functions which have return values with extra properties not used by the component?
本文标签: Find oversubscribed mapStateToProps functions in ReduxStack Overflow
版权声明:本文标题:Find over-subscribed mapStateToProps functions in Redux - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744643892a2617282.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论