Mailspring/packages/client-app/internal_packages/thread-list
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
..
assets [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
lib [client-app] Prevent unnecessary re-rendering of thread-list 2017-02-28 10:04:31 -08:00
spec [client-app] For consistency, proxy marking unread thru ThreadListActionStore 2017-02-21 12:31:07 -08:00
stylesheets [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
package.json [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00