HomePhabricator
Diffusion Comm f6eaff7c3230

[lib] Memoize userinfos in usePotentialMemberItems

Description

[lib] Memoize userinfos in usePotentialMemberItems

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.

Reviewers: ashoat, michal

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D10409

Details

Provenance
rohanAuthored on Dec 19 2023, 8:43 PM
Reviewer
ashoat
Differential Revision
D10409: [lib] Memoize userinfos in usePotentialMemberItems
Parents
rCOMM2d8e24caf67b: [native] Bump @commapp/sqlcipher-amalgamation to 4.5.5-b
Branches
Unknown
Tags
Unknown