Page MenuHomePhabricator

[native] memoize BottomSheetHandle
ClosedPublic

Authored by ginsu on Sep 12 2023, 8:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 13, 8:23 PM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Fri, Sep 13, 2:50 AM
Unknown Object (File)
Tue, Aug 27, 10:06 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
Lint Not Applicable
Unit
Tests Not Applicable

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.