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)
Wed, Jan 8, 7:59 PM
Unknown Object (File)
Wed, Jan 8, 12:11 AM
Unknown Object (File)
Fri, Dec 27, 1:40 PM
Unknown Object (File)
Fri, Dec 27, 1:40 PM
Unknown Object (File)
Fri, Dec 27, 1:40 PM
Unknown Object (File)
Fri, Dec 27, 1:39 PM
Unknown Object (File)
Fri, Dec 27, 1:27 PM
Unknown Object (File)
Nov 21 2024, 6:22 AM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Sep 10 2023, 6:11 PM
tomek added inline comments.
native/components/swipeable.js
109

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

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.