Page MenuHomePhabricator

[native] Convert `ConnectedSwipeable` to functional component
ClosedPublic

Authored by atul on Sep 10 2023, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 10:13 AM
Unknown Object (File)
Mon, Oct 28, 1:00 PM
Unknown Object (File)
Tue, Oct 22, 2:18 PM
Unknown Object (File)
Tue, Oct 22, 2:18 PM
Unknown Object (File)
Tue, Oct 22, 2:18 PM
Unknown Object (File)
Tue, Oct 22, 2:17 PM
Unknown Object (File)
Tue, Oct 22, 5:04 AM
Unknown Object (File)
Sun, Oct 6, 4:51 PM
Subscribers

Details

Summary

I thought the changes here would prevent SwipeableThread from re-rendering, but it looks like I misinterpreted some profiling sessions... that said I already did this work so figured I'd put it up (assuming it isn't burdensome for reviewers to review, etc.)

Test Plan

SwipeableThread continues to look and work as before.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Sep 10 2023, 6:11 PM
tomek added inline comments.
native/components/swipeable.js
109 ↗(On Diff #30908)

Is it intentional to drop React.memo?

This revision is now accepted and ready to land.Sep 11 2023, 4:19 AM
native/components/swipeable.js
109 ↗(On Diff #30908)

We're still memoizing Swipeable just w/ React.useMemo instead of React.Memo

572e23.png (492×1 px, 85 KB)

This revision was landed with ongoing or failed builds.Sep 11 2023, 10:52 AM
This revision was automatically updated to reflect the committed changes.