-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Chore] Fix components where react rules aren't followed #52040
[Chore] Fix components where react rules aren't followed #52040
Conversation
This reverts commit a8f6e51.
We can ignore Changed files ESlint check as PR touches many files |
@ntdiary FYI I'm OOO 7-11 November, but the PR is ready to review 😄 |
@blazejkustra, ah, I have requested another c+ take over, because I need review two other issues first. After @luacmartins confirms a c+, I think review will start soon. :) |
Assigned @dominictb as per the request in Slack |
@dominictb Merged the newest main, what's the review ETA? cc @ntdiary |
I'm reviewing and will finish tomorrow due to the large code changes. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-14.at.10.53.37-compressed.movAndroid: mWeb ChromeScreen.Recording.2024-11-14.at.10.55.58-compressed.moviOS: NativeScreen.Recording.2024-11-14.at.10.46.05-compressed.moviOS: mWeb SafariScreen.Recording.2024-11-14.at.10.49.37-compressed.movMacOS: Chrome / SafariScreen.Recording.2024-11-14.at.10.36.20-compressed.movScreen.Recording.2024-11-14.at.10.34.09-compressed.movScreen.Recording.2024-11-14.at.10.33.49-compressed.movScreen.Recording.2024-11-14.at.10.32.34-compressed.movMacOS: DesktopScreen.Recording.2024-11-14.at.10.43.06-compressed.mov |
@dominictb Code adjusted, thank you! |
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 well
@luacmartins All yours. |
ESLint checks are failing with |
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
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
See comment above |
✋ 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/luacmartins in version: 9.0.63-1 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.63-3 🚀
|
Explanation of Change
This PR aims to fix some of the code that react-compiler signalizes as not compliant with React rules.
After investigating, it won't be easy to get rid of a significant number of react-compiler eslint comments in one PR, rather it should be a planned project like withOnyx migration/TS migration. But I don't think it is our priority at the moment. That being said, I think we can come back to this once it is a bigger priority for us (before upgrading to React v19)
Fixed Issues
$ #51972
PROPOSAL: N/A
Tests
Example of how it shouldn't work
blazej1.mov
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop