Page MenuHomePhabricator

[lib/web/native] Convert getMentionTypeaheadUserSuggestions into a hook
ClosedPublic

Authored by rohan on Dec 21 2023, 1:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:15 PM
Unknown Object (File)
Fri, Nov 8, 10:03 PM
Unknown Object (File)
Fri, Nov 8, 7:18 PM
Unknown Object (File)
Fri, Nov 8, 7:18 PM
Unknown Object (File)
Fri, Nov 8, 1:13 PM
Unknown Object (File)
Sep 29 2024, 2:15 AM
Unknown Object (File)
Sep 27 2024, 9:10 AM
Unknown Object (File)
Sep 27 2024, 9:10 AM
Subscribers

Details

Summary

This is some feedback provided in https://phab.comm.dev/D10387#inline-63506. This diff converts getMentionTypeaheadUserSuggestions into a hook that is consumed in both web and native.

Addressess ENG-6278

Depends on D10407

Test Plan

Made sure the @ mentioning for users and chats still looked fine, nothing seemed slow or out of place. Also opened up the Chrome console to make sure no React warnings were appearing.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/shared/mention-utils.js
137–140 ↗(On Diff #34928)

The conversion to a hook here is similar to the conversion I did for useMentionTypeaheadUserSuggestions above

rohan requested review of this revision.Dec 21 2023, 1:55 PM
This revision is now accepted and ready to land.Dec 21 2023, 4:26 PM