Page MenuHomePhabricator

[native] Register CommunityDrawerButton in nux context
ClosedPublic

Authored by inka on Aug 5 2024, 1:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 3:39 AM
Unknown Object (File)
Wed, Dec 18, 4:26 PM
Unknown Object (File)
Wed, Dec 18, 4:26 PM
Unknown Object (File)
Wed, Dec 18, 4:26 PM
Unknown Object (File)
Wed, Dec 18, 4:26 PM
Unknown Object (File)
Wed, Dec 18, 4:26 PM
Unknown Object (File)
Fri, Dec 6, 7:05 AM
Unknown Object (File)
Thu, Nov 21, 12:53 AM
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
Branch
inka/nux
Lint
No Lint Coverage
Unit
No Test Coverage

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