Repository navigation
Conversation
Contributor
|
|
LukasMod
force-pushed
the
perf/spend-reports-send-messages-v3
branch
from
July 20, 2026 12:51
226b7cb to
7be5d56
Compare
LukasMod
force-pushed
the
perf/spend-reports-send-messages-v3
branch
from
July 21, 2026 13:26
523b920 to
ee97c6f
Compare
| // useCallback and its `onLayout`, re-rendering the memoized report list on every parent render. | ||
| const SUBMIT_TO_DESTINATION_FOLLOW_UP_ACTIONS = [CONST.TELEMETRY.SUBMIT_FOLLOW_UP_ACTION.DISMISS_MODAL_AND_OPEN_REPORT, CONST.TELEMETRY.SUBMIT_FOLLOW_UP_ACTION.DISMISS_MODAL_ONLY] as const; | ||
| const SUBMIT_TO_DESTINATION_TRIGGERS = [CONST.TELEMETRY.SUBMIT_TO_DESTINATION_VISIBLE_TRIGGER.LAYOUT, CONST.TELEMETRY.SUBMIT_TO_DESTINATION_VISIBLE_TRIGGER.FOCUS] as const; | ||
|
|
Contributor
There was a problem hiding this comment.
Does this by itself improve the performance ? wonder if it worth to measure as well
Contributor
Author
There was a problem hiding this comment.
Hmm, I was sure it was but I double checked with latest version and I don't see a difference. I will remove it, thanks!
LukasMod
force-pushed
the
perf/spend-reports-send-messages-v3
branch
from
July 22, 2026 08:23
43ed4f2 to
666da8f
Compare
…OnyxFocusBoundary
This was referenced Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
OnyxFocusBoundarycomponent (web + native variants): provides a subtree-wide default for useOnyx's subscribed option based on navigation focus (useIsFocused). Blurred screens keep their Onyx cache warm but stop re-rendering on writes. Web closes the gate urgently on blur (writes land inside the navigation span) but opens it viauseDeferredValueon refocus so the catch-up render yields to the animation; native defers both directions.SearchMoneyRequestReportPagewrapped in the boundary (first adopter).NVP_DELETE_TRANSACTION_NAVIGATE_BACK_URLpinned to subscribed: true because its clearing effect runs only while blurred. Also hoisted two telemetry const arrays to module scope for stable identity (prevents report list re-renders).SHOULD_ONYX_SUBSCRIBED_FOLLOW_FOCUSOnyx key + Test Tools switch (setShouldOnyxSubscribedFollowFocusin User.ts). Off by default — feature inert unless enabled.Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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