Page MenuHomePhabricator

[lib] Introduce useThreadSearchIndex hook
ClosedPublic

Authored by ashoat on Jan 31 2023, 4:55 AM.
Tags
None
Referenced Files
F3323531: D6477.diff
Wed, Nov 20, 3:44 AM
Unknown Object (File)
Tue, Oct 29, 3:21 PM
Unknown Object (File)
Tue, Oct 29, 3:20 PM
Unknown Object (File)
Oct 10 2024, 6:24 PM
Unknown Object (File)
Oct 10 2024, 5:32 PM
Unknown Object (File)
Oct 10 2024, 4:32 PM
Unknown Object (File)
Oct 10 2024, 1:19 PM
Unknown Object (File)
Oct 10 2024, 10:41 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
No Lint Coverage
Unit
No Test Coverage

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 ↗(On Diff #21703)

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