Conversation
|
@Julesssss Almost. I ran into some issues properly handling the scenario where the user moves back and focus is restored. I tried developing this for specific scenario to avoid rerenders on another screens, but to actually see it works I would have had to replace like 60+ hooks, which felt too risky. So I moved on to higher-priority tasks. |
Fair enough I think that makes. Are you happy to close this in that case? |
|
@Julesssss Sure, closing this one. We can revisit this idea later if there will be justified case for it |
Details
Idea is to allow control subscriptions from useOnyx based on conditions eg.
isFocused, which could results withuseOnyxFocused.Related Issues
GH_LINK
Automated Tests
Manual Tests
Author Checklist
### Related Issuessection aboveTestssectiontoggleReportand notonIconClick)myBool && <MyComponent />.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Avataris modified, I verified thatAvataris working as expected in all cases)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop