Skip to content

[Due for payment 2025-07-15] Remove extra re-renders when opening a filter on Search page. #65378

Closed

Description

@mountiny

Coming from here

Problem

Whenever we open any filter on Search page the Popover gets instantly re-rendered which is bad in general but in more expensive cases causes a significant delay. Most prominent case was UserSelectPopup which on heavy accounts can take up to 0.5s to render itself.

Solution

Recently a new prop was added to PopoverWithMeasuredContent that allows us to cut the unnecessary re-measurements. We should pass shouldSkipRemeasurement={true} prop to PopoverWithMeasuredContent inside src/components/Search/FilterDropdowns/DropdownButton.tsx to avoid extra re-render. This way React uses already memoized children component instead of rendering it from scratch again. Before and after comparison in 🧵

Issue OwnerCurrent Issue Owner: @isabelastisser

Activity

  1. added
    Daily
    Bug
    on Jul 2, 2025
  2. melvin-bot commented on Jul 2, 2025

    @melvin-bot

    Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. added
    Reviewing
    on Jul 2, 2025
  4. parasharrajat commented on Jul 2, 2025

    @parasharrajat
    Member

    Checking....

  5. added
    Weekly
    and removed
    Daily
    on Jul 3, 2025
  6. isabelastisser commented on Jul 7, 2025

    @isabelastisser
    Contributor

    @parasharrajat, any updates?

  7. mountiny commented on Jul 7, 2025

    @mountiny
    ContributorAuthor

    PR is in staging!

  8. 5 remaining items

  9. melvin-bot commented on Jul 8, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  10. melvin-bot commented on Jul 8, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.77-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-07-15. 🎊

    For reference, here are some details about the assignees on this issue:

    • @MrMuzyk does not require payment (Contractor)
    • @parasharrajat requires payment through NewDot Manual Requests
  11. melvin-bot commented on Jul 8, 2025

    @melvin-bot

    @parasharrajat @isabelastisser The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  12. isabelastisser commented on Jul 9, 2025

    @isabelastisser
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal Template
    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    Test:

    Do we agree 👍 or 👎

  13. parasharrajat commented on Jul 15, 2025

    @parasharrajat
    Member

    No checklist needed here. Its code refactor.

  14. added
    Daily
    and removed
    Weekly
    on Jul 15, 2025
  15. melvin-bot commented on Jul 15, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    • Contributor: @MrMuzyk is from an agency-contributor and not due payment
    • Reviewer: @parasharrajat owed $250 via NewDot

    BugZero Checklist (@isabelastisser)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  16. isabelastisser commented on Jul 16, 2025

    @isabelastisser
    Contributor

    Payment summary:

    Contributor: @MrMuzyk is from an agency-contributor and not due payment
    Reviewer: @parasharrajat owed $250 via NewDot for C+ review

  17. parasharrajat commented on Jul 28, 2025

    @parasharrajat
    Member

    Payment requested as per #65378 (comment)

  18. twisterdotcom commented on Jul 31, 2025

    @twisterdotcom
    Contributor

    @parasharrajat has submitted payment for this report on ND here.

    SO: https://stackoverflowteams.com/c/expensify/questions/7582

    Zapier Logs Run ID: 00040eee-eae3-aa35-985f-5356cb9be481
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDaily

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions