HomePhabricator
Diffusion Comm 832b471c0618

[native] Add some memoization to `InnerTextMessage` component

Tags
None
Referenced Files
F736689: 762d99.png
Sep 6 2023, 1:25 PM
File Not Attached
F736690: 6b03c7.png
Sep 6 2023, 1:25 PM
File Not Attached
Subscribers
None

Description

[native] Add some memoization to InnerTextMessage component

Summary:
Was able to reduce re-renders with some memoization.


Depends on D9054

Test Plan:
Before:

6b03c7.png (1×2 px, 530 KB)

After:

762d99.png (1×344 px, 201 KB)

You can observe that we don't render anything nested within InnerTextMessage

Reviewers: ginsu, tomek, rohan

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Sep 6 2023, 1:18 PM
Reviewer
tomek
Differential Revision
D9055: [native] Add some memoization to `InnerTextMessage` component
Parents
rCOMM402c80e99845: [native] Add more memoization to `SwipeableMessage`
Branches
Unknown
Tags
Unknown