-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: Infinite Loading When Member Is Removed from Workspace Chat #74045
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
base: main
Are you sure you want to change the base?
Fix: Infinite Loading When Member Is Removed from Workspace Chat #74045
Conversation
|
@allroundexperts 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] |
| }, [reportOnyx?.reportID, route.params.backTo, reportIDFromRoute]); | ||
|
|
||
| useFocusEffect(redirectBackOnDeletedReport); | ||
|
|
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.
❌ PERF-6 (docs)
The useCallback dependency array includes the entire reportOnyx?.reportID object property, but you're only accessing it in conditional checks. Consider specifying the individual property more explicitly if reportOnyx is an object that changes frequently.
Suggested fix: Since reportOnyx?.reportID is already a primitive value (string), this is acceptable. However, ensure that reportIDFromRoute and route.params.backTo are also primitives and not extracted from complex objects that could cause unnecessary re-renders.
|
LGTM 👍 Thank you for your hard work! |
|
@allroundexperts, friendly bump on review. thanks. |
|
@nabi-ebrahimi Tests are failing. |
…backbutton-pressed
|
@allroundexperts Thanks for checking. Although those failures weren’t related to my changes, I’ve merged main to rerun the tests. If they fail again, I’ll investigate further. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@allroundexperts, tests are all passed, please take another look. thanks |
|
Hi @nabi-ebrahimi! Your PR still does not seem to resolve the issue. Screen.Recording.2025-12-01.at.3.04.17.AM.mov |
|
@allroundexperts, I will check it asap and update here. thanks |
…backbutton-pressed
|
@allroundexperts, could you please re-test it? I’ve tested it again on my side, and it’s working. Screen.Recording.1404-09-10.at.8.52.45.AM.mp4Could you please share any specific steps in your test that caused this issue to appear? Thank you. |
|
@allroundexperts, the failing test appears to be a flaky one and isn’t related to my changes. It should be resolved after re-running the tests. |
Explanation of Change
Fixed Issues
$ #64627
PROPOSAL: #64627 (comment)
Tests
Offline tests
Same as Tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests
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))npm run compress-svg)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
Screen.Recording.1404-04-19.at.3.03.46.PM.mov
Android: mWeb Chrome
Screen.Recording.1404-04-19.at.3.24.18.PM.mov
iOS: Native
Screen.Recording.1404-04-19.at.3.19.47.PM.mov
iOS: mWeb Safari
Screen.Recording.1404-04-19.at.3.25.27.PM.mov
MacOS: Chrome / Safari
Screen.Recording.1404-04-19.at.2.57.57.PM.mov
MacOS: Desktop
Not applicable.