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)
Tue, Nov 12, 5:21 PM
Unknown Object (File)
Tue, Nov 12, 5:21 PM
Unknown Object (File)
Sat, Nov 9, 11:39 PM
Unknown Object (File)
Sat, Nov 9, 8:55 PM
Unknown Object (File)
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Fri, Nov 8, 12:24 PM
Unknown Object (File)
Wed, Nov 6, 11:17 PM
Unknown Object (File)
Sun, Nov 3, 8:26 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