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)
Mon, Nov 18, 9:47 AM
Unknown Object (File)
Sun, Nov 17, 3:46 PM
Unknown Object (File)
Sun, Nov 17, 2:36 PM
Unknown Object (File)
Thu, Nov 14, 7:53 PM
Unknown Object (File)
Sun, Nov 10, 1:30 AM
Unknown Object (File)
Sat, Nov 9, 11:06 PM
Unknown Object (File)
Sat, Nov 9, 10:50 PM
Unknown Object (File)
Sat, Nov 9, 1:39 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
Branch
fix
Lint
No Lint Coverage
Unit
No Test Coverage