Page MenuHomePhabricator

[web] Only call userInfoSelectorForPotentialMembers where it's needed
ClosedPublic

Authored by ashoat on Sep 30 2024, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 20, 11:10 PM
Unknown Object (File)
Thu, Mar 20, 9:54 PM
Unknown Object (File)
Fri, Mar 7, 11:21 AM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:43 AM
Unknown Object (File)
Feb 16 2025, 12:29 PM
Subscribers
None

Details

Summary

The only callsite of useInfosForPendingThread that needs otherUserInfos is ChatMessageListContainer. It's only needed there to pass to ChatThreadComposer.

To avoid fetching it unnecessarily at the other callsites, I've extracted it to that single callsite. This also benefits code readability by reducing indirection and unnecessary prop drilling.

Depends on D13540

Test Plan

Flow (this is a pure refactor)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable