Page MenuHomePhabricator

[lib] Introduce useThreadSearchIndex hook
ClosedPublic

Authored by ashoat on Jan 31 2023, 4:55 AM.
Tags
None
Referenced Files
F5885526: D6477.diff
Thu, Apr 17, 3:50 AM
F5879982: D6477.diff
Thu, Apr 17, 2:05 AM
Unknown Object (File)
Mar 7 2025, 10:41 PM
Unknown Object (File)
Mar 7 2025, 4:38 PM
Unknown Object (File)
Mar 2 2025, 1:55 AM
Unknown Object (File)
Feb 27 2025, 10:47 PM
Unknown Object (File)
Feb 11 2025, 4:21 AM
Unknown Object (File)
Jan 31 2025, 8:42 AM
Subscribers

Details

Summary

Converting this to a hook will make it easier to swap in ENS names.

Depends on D6476

Test Plan

Tested the two surfaces that currently use useSearchThreads: SidebarListModal and SubchannelsListModal on native

Screenshot 2023-01-31 at 7.55.34 AM.png (1×772 px, 88 KB)
Screenshot 2023-01-31 at 7.55.40 AM.png (1×768 px, 79 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat added a reviewer: inka.
This revision is now accepted and ready to land.Jan 31 2023, 9:47 AM
This revision was automatically updated to reflect the committed changes.
lib/hooks/search-threads.js
52

This was a big oversight. This map should have been memoized... failing to memoize it caused ENG-4605