-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD Web-Expensify/pull/35134
] Add DEBUG_ONYX_SET_STATE
mode + bump Onyx version to 1.0.22 to help prevent re-renders
#11598
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-onyx
toApp/node_modules/react-native-onyx
ONYX_DEBUG_SET_STATE=true
in.env
npm run web
PR Review Checklist
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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