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, Dec 17, 9:06 AM
Unknown Object (File)
Mon, Dec 16, 1:37 AM
Unknown Object (File)
Fri, Dec 6, 6:09 PM
Unknown Object (File)
Sat, Nov 23, 5:12 AM
Unknown Object (File)
Nov 14 2024, 4:15 PM
Unknown Object (File)
Nov 8 2024, 10:03 PM
Unknown Object (File)
Nov 8 2024, 7:18 PM
Unknown Object (File)
Nov 8 2024, 7:18 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