[No QA]: Remove Onyx.connect() for the key: ONYXKEYS.ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT in src/libs/Network/enhanceParameters.ts #69079
Conversation
|
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
|
| // `lastUpdateIDAppliedToClient` is not dependent on any changes on the UI, | ||
| // so it is okay to use `connectWithoutView` here. | ||
| Onyx.connectWithoutView({ |
There was a problem hiding this comment.
@danieldoglas This is not connected to UI, but I think this variable changes a lot. Can you tell us when this variable changes?
There was a problem hiding this comment.
Every time you receive an onyxUpdate through pusher or http method, this variable will be updated.
I don't think it's a problem that it is updated a lot though.
There was a problem hiding this comment.
@danieldoglas Should we do this via a centralised storage class? So that we would update this variable safely.
There was a problem hiding this comment.
Actually, we only set it in one place:
App/src/libs/actions/OnyxUpdates.ts
Line 147 in adf2ca2
Should we do this via a centralised storage class?
What would be the advantages in this case?
There was a problem hiding this comment.
I thought it would make the increment update to updateID stable. But by seeing the code, I don't think so now.
Reviewer Checklist
|
|
Let's fix the conflict here and merge. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.3-0 🚀
|
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.5-0 🚀
|
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.8-4 🚀
|
Explanation of Change
Fixed Issues
$ #66358
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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