Skip to content

[Performance] Pre-render Search under RHP for instant post-submit navigation on mobile #88295

Closed

Description

@mountiny

Context

This issue documents the performance work shipped in #87404 (merged 2026-04-13).

Problem

On narrow (mobile) layouts, navigating to Search after submitting an expense from the IOU confirmation screen could take several hundred milliseconds to over a second, which made the submit-to-Search transition feel slow.

Solution (shipped)

  • After a short delay on the confirmation screen, pre-insert the Search fullscreen route underneath the RHP (REPLACE_FULLSCREEN_UNDER_RHP) so Search can mount while the user finishes details.
  • Fast path: If pre-insert completed before submit, dismiss the RHP immediately to reveal the already-mounted Search (createTransaction runs on the next frame).
  • Slow path: If the user submits before pre-insert completes, fall back to the existing navigation path.
  • Cleanup: If the user leaves without submitting, remove the pre-inserted route (REMOVE_FULLSCREEN_UNDER_RHP).
  • Supporting changes included deferred write channel reservation, SearchPageNarrow focus gating and overlay transition for static-to-interactive Search, RightModalNavigator adjustments when pre-insert is active, and related Search/telemetry updates described in the PR.

Related

Note

Review feedback called out that a spinner may still appear on submit in some cases and that telemetry spans should be monitored post-deploy to confirm real-world gains.

Activity

  1. added
    Daily
    Awaiting Payment
    on Apr 19, 2026
  2. melvin-bot commented on Apr 19, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  3. changed the title [-][Performance] Pre-render Search under RHP for instant post-submit navigation on mobile[/-] [+][Due for payment 2026-04-23] [Performance] Pre-render Search under RHP for instant post-submit navigation on mobile[/+] on Apr 19, 2026
  4. changed the title [-][Due for payment 2026-04-23] [Performance] Pre-render Search under RHP for instant post-submit navigation on mobile[/-] [+][Performance] Pre-render Search under RHP for instant post-submit navigation on mobile[/+] on Apr 22, 2026
  5. removed
    Awaiting Payment
    on Apr 22, 2026
  6. mallenexpensify commented on Apr 22, 2026

    @mallenexpensify
    Contributor

    Please comment and tag me if/when payment is due, thx

  7. melvin-bot commented on Apr 27, 2026

    @melvin-bot

    @mallenexpensify, @ShridharGoel, @mountiny, @JakubKorytko Huh... This is 4 days overdue. Who can take care of this?

  8. melvin-bot commented on Apr 29, 2026

    @melvin-bot

    @mallenexpensify, @ShridharGoel, @mountiny, @JakubKorytko 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  9. added
    Weekly
    and removed
    Daily
    on Apr 29, 2026
  10. ShridharGoel commented on May 2, 2026

    @ShridharGoel
    Contributor

    @mallenexpensify This should be due for payment

  11. mallenexpensify commented on May 4, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @ShridharGoel due $250 via NewDot

    I'm assuming it's for review of

  12. garrettmknight commented on May 5, 2026

    @garrettmknight
    Contributor

    $250 approved for @ShridharGoel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions