Page MenuHomePhabricator

[native] memoize BottomSheetHandle
ClosedPublic

Authored by ginsu on Sep 12 2023, 8:56 AM.
Tags
None
Referenced Files
F3385528: D9150.diff
Fri, Nov 29, 12:52 AM
Unknown Object (File)
Mon, Nov 25, 6:17 PM
Unknown Object (File)
Mon, Nov 25, 2:37 PM
Unknown Object (File)
Wed, Nov 20, 7:01 AM
Unknown Object (File)
Sun, Nov 17, 8:36 PM
Unknown Object (File)
Mon, Nov 11, 12:03 PM
Unknown Object (File)
Mon, Nov 11, 6:01 AM
Unknown Object (File)
Fri, Nov 8, 8:37 AM
Subscribers

Details

Summary

In D8958 I should have memoized the bottom sheet handle component. This diff addresses that concern

Test Plan

confirmed that the handle still worked as expected

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Sep 12 2023, 9:13 AM

Personal preference is memoization "inside" the component w/ useMemo hook so everything is self-contained and memoization is consistent and whatnot, but this is valid

This revision is now accepted and ready to land.Sep 12 2023, 1:34 PM
This revision was landed with ongoing or failed builds.Sep 12 2023, 2:05 PM
This revision was automatically updated to reflect the committed changes.