mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-23 08:46:07 +08:00
396a027bcb
Summary: This commit adds a `shouldComponentUpdate` to thread-list.cjsx so that the thread list doesn't unnecessarily /try/ to re-render when state or props haven't actually changed. I noticed this because the thread list was constantly calling `render` even though it didn't render any changes to the DOM. This was caused because it listens to `NylasSyncStatusStore` which constantly triggers, even though the piece of state the list is interested in rarely changes, causing unnecessary calls to the `render` loop. Test Plan: manual Reviewers: halla, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D4047 |
||
---|---|---|
.. | ||
category-removal-target-rulesets.es6 | ||
injects-toolbar-buttons.jsx | ||
main.es6 | ||
message-list-toolbar.jsx | ||
selected-items-stack.jsx | ||
thread-list-columns.cjsx | ||
thread-list-context-menu.es6 | ||
thread-list-data-source.es6 | ||
thread-list-icon.cjsx | ||
thread-list-participants.cjsx | ||
thread-list-quick-actions.cjsx | ||
thread-list-scroll-tooltip.cjsx | ||
thread-list-store.coffee | ||
thread-list-toolbar.jsx | ||
thread-list.cjsx | ||
thread-toolbar-buttons.jsx |