[TS Migration] [No QA] Migrate wdyr.js to TS#38681
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
this is done according to TS description in: https://github.com/welldone-software/why-did-you-render?tab=readme-ov-file#setup
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
staszekscp
left a comment
There was a problem hiding this comment.
I would only leave the comment on the top, otherwise LGTM
793f5fc to
b2e5f3d
Compare
|
Also, maybe it's worth to add the link to the documentation, that explains why the |
b2e5f3d to
6be8734
Compare
| const useWDYR = Config?.USE_WDYR === 'true'; | ||
|
|
||
| if (useWDYR) { | ||
| const whyDidYouRender = require('@welldone-software/why-did-you-render'); |
There was a problem hiding this comment.
| const whyDidYouRender = require('@welldone-software/why-did-you-render'); | |
| const whyDidYouRender = require<typeof WhyDidYouRender>('@welldone-software/why-did-you-render'); |
There was a problem hiding this comment.
very good point, will update this
|
@marcochavezf 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |

Details
(Note: the issue is closed but the file was not migrated.)
lodash.getusage. I hope that is ok since there is almost no changes in this file otherwise.Fixed Issues
$#25229
PROPOSAL:
Tests
.envand set the value ofUSE_WDYRtotrueUSE_WDYRto false and see that no logs appearOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2024-03-21.at.09.28.30.mov
MacOS: Desktop