Page MenuHomePhabricator

[native] Register CommunityDrawerButton in nux context
ClosedPublic

Authored by inka on Aug 5 2024, 1:40 AM.
Tags
None
Referenced Files
F2763481: D12964.id43342.diff
Thu, Sep 19, 11:03 AM
Unknown Object (File)
Tue, Sep 10, 4:36 AM
Unknown Object (File)
Sun, Sep 8, 4:55 PM
Unknown Object (File)
Sun, Sep 8, 10:30 AM
Unknown Object (File)
Sat, Sep 7, 1:46 PM
Unknown Object (File)
Thu, Sep 5, 3:52 PM
Unknown Object (File)
Thu, Sep 5, 3:52 PM
Unknown Object (File)
Thu, Sep 5, 3:51 PM
Subscribers

Details

Summary

issue: ENG-8618

Test Plan

Tested with following diffs. Tested that after a button registeres their coordinates the handler effect is fired and nux tip appears on the screen, rendering the button in the correct place
Tested that as the button unmounts, the cleanup function is called. Checked that it is not called in unexpected moments

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 5 2024, 1:55 AM
Harbormaster failed remote builds in B30882: Diff 43062!
inka requested review of this revision.Aug 5 2024, 7:36 AM
native/chat/chat.react.js
403 ↗(On Diff #43101)

Can we pass just tipsContext.registerTipButton in here?

tomek added inline comments.
native/chat/chat.react.js
389–393 ↗(On Diff #43101)

Up to you, but this whole expression can be simplified.

415 ↗(On Diff #43101)

Should we unregister from the context when this button gets unmounted?

This revision is now accepted and ready to land.Aug 6 2024, 2:03 AM

Address nits and rebase.
[TODO: UNREGISTER BUTTON AS IT UNMOUNTS]

inka planned changes to this revision.Aug 8 2024, 8:04 AM
This revision is now accepted and ready to land.Aug 13 2024, 6:28 AM