mattermost-mobile/app/components/post_list
Mattermost Build af715828b6
MM-22253 Reduce unnecessary re-renders in channel switching (#3901)
Re-renders were occuring because of prop and state updates that created new object references, despite being of identical value. A key culprit was `postListHeight` in `PostList` which goes through a few calls to `handleContentSizeChange` when loading posts.

Also, "New Messages" divider line is a pure component now (via `memo`) to reduce unnecessary re-renders here too.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-02-07 14:16:49 -07:00
..
__snapshots__ MM-21342 Fix leading zero on post by using react-intl by default and fallback to moment-timezone for unsupported locale (#3797) 2020-01-13 20:12:51 -03:00
date_header MM-18466 Change recent date separators to yesterday/today (#3245) 2019-09-14 07:02:51 -03:00
index.js [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00
new_messages_divider.js MM-22253 Reduce unnecessary re-renders in channel switching (#3901) 2020-02-07 14:16:49 -07:00
post_list.js MM-22253 Reduce unnecessary re-renders in channel switching (#3901) 2020-02-07 14:16:49 -07:00
post_list.test.js Set default app scheme to mattermost (#3828) 2020-01-20 16:18:55 -03:00