Page MenuHomePhabricator

[native] Register CommunityDrawerButton in nux context
ClosedPublic

Authored by inka on Aug 5 2024, 1:40 AM.
Tags
None
Referenced Files
F3193576: D12964.id43342.diff
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
Unknown Object (File)
Sun, Nov 3, 8:26 PM
Unknown Object (File)
Sun, Nov 3, 8:24 PM
Unknown Object (File)
Sun, Nov 3, 8:24 PM
Unknown Object (File)
Sun, Nov 3, 8:17 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
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