HomePhabricator
Diffusion Comm db25255e8d98

[native] Convert `ConnectedMessage` class component to functional `Message`

Description

[native] Convert ConnectedMessage class component to functional Message

Summary:
Based on profiling of "navigating to thread w/ varun" scenario, the re-renders of Message take ~100ms. There's a few nested class components here, so converting to functional to try to memoize things in a more specific way to avoid re-renders.


Depends on D9050

Test Plan: Message component continues to appear as expected and we're skipping render of a few child components (not in a super impactful way, however)

Reviewers: ginsu, rohan, tomek

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Sep 5 2023, 7:22 AM
Reviewer
tomek
Differential Revision
D9051: [native] Convert `ConnectedMessage` class component to functional `Message`
Parents
rCOMMa3361bf3c0d7: [backup] Update db constants
Branches
Unknown
Tags
Unknown