HomePhabricator
Diffusion Comm 7d901c25c45e

[native] Convert `ComposedMessage` into a functional component

Description

[native] Convert ComposedMessage into a functional component

Summary:
This allows us to memoize things in a more precise way and reduces some re-renders of child components.


Depends on D9051

Test Plan: ComposedMessage continues to behave as expected. A little more "gray" in the flamegraph (components aren't re-rendering), but nothing super impactful. Hopefully there will be more significant improvements in conjunction w/ subsequent diffs.

Reviewers: ginsu, rohan, tomek

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Sep 5 2023, 10:56 AM
Reviewer
tomek
Differential Revision
D9052: [native] Convert `ComposedMessage` into a functional component
Parents
rCOMMdb25255e8d98: [native] Convert `ConnectedMessage` class component to functional `Message`
Branches
Unknown
Tags
Unknown