Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.3.28-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #81869
Email or phone of affected tester (no customers): applausetester+030226dr81869@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: MacOS 26.3 / Safari, Chrome
App Component: Chat Report View
Action Performed:
- Login to staging.new.expensify with Expensifail account
- Click on "+" button
- Select "Start Chat"
- Select some users and add them to the chat group
- Click Next
- On the Group page try to go back, remove any selected member or click "Start Group"
Expected Result:
User can go back, remove any selected member or click "Start Group" on the Group page while creating a chat group
Actual Result:
App freezes on the Group page while creating a chat group. User can not go back, remove any selected member or click "Start Group".
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
Bug7092415_1772496310224.Web-App-freeze-chat-group.mp4
Issue Owner
Current Issue Owner: @kadiealexanderUpwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022028664996012386335
- Upwork Job ID: 2028664996012386335
- Last Price Increase: 2026-03-03
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Mar 3, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #81869
melvin-bot commentedon Mar 3, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Mar 3, 2026
Triggered auto assignment to @kadiealexander (
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.github-actions commentedon Mar 3, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Mar 3, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The app freezes on the Group page when creating a chat group (click "+" → "Start Chat" → select users → click "Next"). The user cannot go back, remove members, or click "Start Group". This was introduced by PR #81869 which migrated
NewChatPagefrom the oldSectionList-basedSelectionListto the newFlashList-basedSelectionListWithSections.What is the root cause of that problem?
PR #81869 changed
useFilteredOptions.tsin two ways that combine to create a runaway re-render loop:Removed the data-driven guard from
loadMore(useFilteredOptions.ts:102-108). Previously,loadMorecheckedoptions.reports.length < totalReportsbefore incrementing the limit. Now it only checksisLoadingMore, which resets tofalseafter just one render cycle via theuseEffectat line 95-100.Changed
hasMoreto usereportsLimit < totalReports(line 110).totalReportscounts ALL Onyx report collection keys (Object.keys(allReports).lengthat line 82), including null/empty entries. This creates a large gap betweenreportsLimit(starts at 500) andtotalReports(could be thousands).The loop works like this:
onEndReached(content doesn't fill the viewport, or data changes trigger a layout recalculation)handleEndReachedatNewChatPage.tsx:205-210checks guards:hasMoreis true (reportsLimit < totalReports),isLoadingMoreis false → callsloadMore()loadMoresetsisLoadingMore=trueand incrementsreportsLimitby 100createFilteredOptionList(expensive — sorts ALL reports and processes up toreportsLimit)useEffectseesoptionschanged andisLoadingMoreis true → setsisLoadingMore=falseonEndReachedagainhandleEndReached:hasMorestill true (reportsLimit 600 < totalReports 5000),isLoadingMorenow false → callsloadMore()againreportsLimit >= totalReportsFor a user with thousands of report keys, this means ~45+ iterations of expensive
createFilteredOptionListcalls in rapid succession, blocking the main thread and freezing the UI. The freeze manifests on the Group page becauseNewChatPageis still mounted in the stack navigator and continues processing.What changes do you think we should make in order to solve the problem?
In
src/hooks/useFilteredOptions.ts, restore a data-driven guard that stops loading when all valid reports have been loaded. TheloadMorefunction should check whether the current options actually filled up to the limit — ifoptions.reports.length < reportsLimit, it means filtering has exhausted all valid reports and there's nothing more to load:Also update
hasMoreto be consistent with this guard so the loading indicator behaves correctly:What alternative solutions did you explore? (Optional)
loadMore: Would reduce the frequency but not eliminate the root cause. The loop would still run, just more slowly.hasMorechange entirely: Going back tooptions.reports.length < totalReportswould work but could lead to edge cases where filtering causeshasMoreto always be true (if filtered count never reaches total). The proposed fix is more robust.isLoadingMoretrue longer (e.g., resetting it inrequestAnimationFrameinstead ofuseEffect): Would add a delay but is fragile and doesn't address the fundamental issue thatloadMoreruns without checking if more data is actually available.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR, or@MelvinBot <your feedback>to refine this analysis.12 remaining items
blimpich commentedon Mar 3, 2026
Going forward with reverting this
blimpich commentedon Mar 3, 2026
requested retest here: https://expensify.slack.com/archives/C09V78U42D8/p1772577075594039
m-natarajan commentedon Mar 3, 2026
The issue is no longer reproducible on Windows 11, Chrome. Build v9.3.28-8
explorer_3VKSsoeV2P.mp4
[-][$250] Web - Chat - App freezes while creating a chat group[/-][+][Due for payment 2026-03-13] [$250] Web - Chat - App freezes while creating a chat group[/+]melvin-bot commentedon Mar 6, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.31-12 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 2026-03-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 6, 2026
@parasharrajat @kadiealexander 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]
melvin-bot commentedon Mar 6, 2026
Current assignee @kadiealexander is eligible for the Awaiting Payment assigner, not assigning anyone new.