fix: Not here page appears briefly in Split RHP#79117
fix: Not here page appears briefly in Split RHP#79117srikarparsi merged 1 commit intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ahmedGaber93 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] |
| [draftTransaction, reportID], | ||
| ); | ||
|
|
||
| if (isLoadingDraftTransaction) { |
There was a problem hiding this comment.
❌ PERF-4 (docs)
Creating a new array [styles.opacity1] on each render breaks memoization of FullScreenLoadingIndicator, which is optimized by React Compiler.
Consider memoizing the style array:
const loadingIndicatorStyle = useMemo(() => [styles.opacity1], [styles.opacity1]);
// Then use it:
if (isLoadingDraftTransaction) {
return <FullScreenLoadingIndicator style={loadingIndicatorStyle} />;
}Alternatively, pass the style directly without an array wrapper:
return <FullScreenLoadingIndicator style={styles.opacity1} />;
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Fix makes sense
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp20260112170135538.mp4Android: mWeb Chrome20260112165359800.mp4iOS: HybridApp20260112170101606.mp4iOS: mWeb Safari20260112165002306.mp4MacOS: Chrome / Safari20260112164533088.mp4 |
|
✋ 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/srikarparsi in version: 9.3.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.1-1 🚀
|
Explanation of Change
Fixed Issues
$ #78601
PROPOSAL: #78601 (comment)
Tests
Offline tests
Same as tests
QA Steps
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
Android: mWeb Chrome
am.mov
iOS: Native
iOS: mWeb Safari
im.mov
MacOS: Chrome / Safari
web.mov