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, Dec 20, 1:43 PM
Unknown Object (File)
Wed, Dec 11, 5:03 PM
Unknown Object (File)
Thu, Dec 5, 9:21 PM
Unknown Object (File)
Thu, Dec 5, 9:21 PM
Unknown Object (File)
Thu, Dec 5, 9:17 PM
Unknown Object (File)
Thu, Dec 5, 8:58 PM
Unknown Object (File)
Nov 18 2024, 9:47 AM
Unknown Object (File)
Nov 17 2024, 3:46 PM
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