Page MenuHomePhabricator

[lib] Introduce useThreadSearchIndex hook
ClosedPublic

Authored by ashoat on Jan 31 2023, 4:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 22 2024, 4:10 PM
Unknown Object (File)
Apr 17 2024, 3:01 PM
Unknown Object (File)
Apr 17 2024, 3:01 PM
Unknown Object (File)
Apr 15 2024, 4:03 PM
Unknown Object (File)
Apr 14 2024, 4:11 PM
Unknown Object (File)
Apr 13 2024, 3:57 PM
Unknown Object (File)
Apr 12 2024, 12:41 PM
Unknown Object (File)
Apr 12 2024, 12:08 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