Mailspring/packages/client-app/internal_packages/thread-list/lib
Juan Tejada 396a027bcb [client-app] Prevent unnecessary re-rendering of thread-list
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
2017-02-28 10:04:31 -08:00
..
category-removal-target-rulesets.es6 [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
injects-toolbar-buttons.jsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
main.es6 [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
message-list-toolbar.jsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
selected-items-stack.jsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-columns.cjsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-context-menu.es6 [client-app] For consistency, proxy marking unread thru ThreadListActionStore 2017-02-21 12:31:07 -08:00
thread-list-data-source.es6 [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-icon.cjsx [client-app] For consistency, proxy starring thru ThreadListActionStore 2017-02-21 12:29:52 -08:00
thread-list-participants.cjsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-quick-actions.cjsx [client-app] Measure and report times for trashing and marking as spam 2017-02-21 12:26:58 -08:00
thread-list-scroll-tooltip.cjsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-store.coffee [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list-toolbar.jsx [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
thread-list.cjsx [client-app] Prevent unnecessary re-rendering of thread-list 2017-02-28 10:04:31 -08:00
thread-toolbar-buttons.jsx [client-app] For consistency, proxy marking unread thru ThreadListActionStore 2017-02-21 12:31:07 -08:00