Page MenuHomePhabricator

[native] Lift `searchCancelButton*` `Value`/`Node`s to `ConnectedChatThreadList`
ClosedPublic

Authored by atul on Sep 11 2023, 1:30 PM.
Tags
None
Referenced Files
F2622513: D9133.id30941.diff
Fri, Sep 6, 7:38 PM
Unknown Object (File)
Tue, Aug 27, 4:58 AM
Unknown Object (File)
Mon, Aug 26, 2:22 PM
Unknown Object (File)
Mon, Aug 26, 9:11 AM
Unknown Object (File)
Mon, Aug 12, 5:07 AM
Unknown Object (File)
Mon, Aug 12, 12:45 AM
Unknown Object (File)
Jul 29 2024, 4:45 PM
Unknown Object (File)
Jul 29 2024, 4:44 PM
Subscribers

Details

Summary

(I initially had a huge diff that converted ChatThreadList to a functional component and added various memoizations. However, I realized that diff would be pretty difficult to review so I'm breaking down the refactor into hopefully easier to review pieces.)

This diff is just one step in the process of converting ChatThreadList into a functional component. When this work is done, we will be able to avoid a lot of re-rendering and hopefully improve performance quite a bit.

In subsequent diffs will

  1. Lift up callbacks related to search
  2. Lift up "search-related" JSX
  3. etc.. continue turning ChatThreadList into a functional component so we can more precisely memoize things, particularly ChatThreadListItems.

Depends on D9132

Test Plan

Search experience continues to work as expected. Can search for users/threads/etc.

NOTE: Noticed an existing issue during testing that WAS NOT caused by this refactor: https://linear.app/comm/issue/ENG-4922/search-chats-x-icon-regression

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage