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)
Tue, Apr 9, 12:34 AM
Unknown Object (File)
Feb 20 2024, 7:07 AM
Unknown Object (File)
Feb 20 2024, 6:43 AM
Unknown Object (File)
Feb 20 2024, 3:22 AM
Unknown Object (File)
Feb 19 2024, 5:41 PM
Unknown Object (File)
Jan 5 2024, 8:54 PM
Unknown Object (File)
Jan 5 2024, 6:55 AM
Unknown Object (File)
Jan 4 2024, 9:52 PM
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