Page MenuHomePhabricator

[lib] Memoize userinfos in usePotentialMemberItems
ClosedPublic

Authored by rohan on Dec 19 2023, 8:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 14, 12:06 AM
Unknown Object (File)
Wed, Mar 5, 2:49 AM
Unknown Object (File)
Feb 21 2025, 7:28 AM
Unknown Object (File)
Feb 18 2025, 6:58 AM
Unknown Object (File)
Feb 18 2025, 6:58 AM
Unknown Object (File)
Feb 18 2025, 6:58 AM
Unknown Object (File)
Feb 18 2025, 6:58 AM
Unknown Object (File)
Jan 30 2025, 3:42 AM
Subscribers

Details

Summary

This addresses the urgent issue outlined in ENG-6139. I should've memoized the userInfos object.

Test Plan

Since usePotentialMemberItems is used in both chat-thread-composer.react.js and add-members-modal.react.js (both also mentioned in the original bug report), I made sure that those both no longer completely freeze/crash.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable