Page MenuHomePhabricator

[native] Lift `[threads/users]SearchResults` state to `ConnectedChatThreadList`
ClosedPublic

Authored by atul on Sep 11 2023, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 2:58 AM
Unknown Object (File)
Fri, Nov 22, 6:34 PM
Unknown Object (File)
Fri, Nov 22, 2:54 PM
Unknown Object (File)
Tue, Nov 19, 10:16 AM
Unknown Object (File)
Fri, Nov 15, 6:11 AM
Unknown Object (File)
Fri, Nov 8, 3:53 AM
Unknown Object (File)
Sun, Oct 27, 6:16 PM
Unknown Object (File)
Oct 20 2024, 10:04 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 rest of state
  2. Lift up callbacks related to search
  3. Lift up Reanimated Nodes
  4. Lift up "search-related" JSX
  5. etc.. continue turning ChatThreadList into a functional component so we can more precisely memoize things, particularly ChatThreadListItems.

Depends on D9130

Test Plan

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

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D9131 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage