[HOLD Web-Expensify/pull/35134] Add DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders#11598
[HOLD Web-Expensify/pull/35134] Add DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders#11598
Web-Expensify/pull/35134] Add DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders#11598Conversation
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
|
This one's ready now. |
stitesExpensify
left a comment
There was a problem hiding this comment.
LGTM, tests failed though
|
Hmm that's weird. I wonder if it's my changes or another recent change. There have been a few actually so maybe |
|
Looks like tests were broken by |
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode
DEBUG_ONYX_SET_STATE modeDEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders
|
Actually, looks like the Onyx version with my changes was merged already here. But since then new changes were made here and a new Onyx version released.
|
|
Ok tested on all platforms with the new Onyx version and this is ready for review. Mostly just did a smoke test and confirmed things aren't totally broken, but added videos for everything. |
|
This PR will need to HOLD until https://github.com/Expensify/Web-Expensify/pull/35134 is on production as bumping the Onyx version breaks the IOU details page. |
DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-rendersDEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders
DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-rendersWeb-Expensify/pull/35134] Add DEBUG_ONYX_SET_STATE mode + bump Onyx version to 1.0.22 to help prevent re-renders
|
I guess we have already bumped Onyx in this PR here while I was OOO so this is no longer needed. |
Details
This PR will add the ability to debug Onyx setState() calls in development by opt-in
Fixed Issues
No issue in particular
Tests (Dev Only)
/react-native-onyxtoApp/node_modules/react-native-onyxONYX_DEBUG_SET_STATE=truein.envnpm run webPR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** 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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Screenshots
Web
Tested on 1.0.22
2022-10-11_10-27-56.mp4
Mobile Web - Chrome
Testing on web should be sufficient to verify the logs as there is no UI changes and this is an opt-in behavior. Tested basic behaviors on app build with 1.0.22 version of Onyx.
2022-10-11_10-36-08.mp4
Mobile Web - Safari
Testing on web should be sufficient to verify the logs as there is no UI changes and this is an opt-in behavior. Tested basic behaviors on app build with 1.0.22 version of Onyx.
2022-10-11_10-43-47.mp4
Desktop
Testing on web should be sufficient to verify the logs as there is no UI changes and this is an opt-in behavior. Tested basic behaviors on app build with 1.0.22 version of Onyx.
2022-10-11_10-57-22.mp4
iOS
Testing on web should be sufficient to verify the logs as there is no UI changes and this is an opt-in behavior. Tested basic behaviors on app build with 1.0.22 version of Onyx.
2022-10-11_11-06-57.mp4
Android
Testing on web should be sufficient to verify the logs as there is no UI changes and this is an opt-in behavior. Tested basic behaviors on app build with 1.0.22 version of Onyx.
2022-10-11_11-16-28.mp4