Conversation
PR #88728 eliminated 31 react-hooks/refs violations in src/pages/Search/SearchPage.tsx by switching from useState to useRef moved into a useEffect, and the Auto-tighten eslint-seatbelt baseline job removed the corresponding seatbelt entry in d791c21. The revert in #89723 reintroduced those 31 violations but did not restore the seatbelt entry, so lint now fails on main and blocks deploys. eslint-seatbelt only auto-tightens, never auto-loosens, so it cannot self-heal after a revert. Restoring the deleted line unblocks main. When PR #88728 is re-rolled the auto-tighten job will remove this line again. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@ShridharGoel 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] |
NikkiWines
approved these changes
May 6, 2026
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
Contributor
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
Contributor
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This was referenced May 6, 2026
73 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.68-0 🚀
Bundle Size Analysis (Sentry): |
7 tasks
Contributor
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.68-3 🚀
|
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
PR #88728 (
Fix: smooth post-submit navigation and rendering on Spend tab) eliminated the 31react-hooks/refsviolations that previously existed insrc/pages/Search/SearchPage.tsx, by switchinglastNonEmptySearchResultsfromuseStatetouseRefand moving its assignment into auseEffect. After it merged, the post-mergeAuto-tighten eslint-seatbelt baselinejob (d791c21eb5a) removed the corresponding seatbelt entry:PR #89723 reverted #88728 to fix a deploy blocker, restoring the original
useRef+.currentaccess during render. That brought all 31react-hooks/refsviolations back, but the revert did not restore the deleted seatbelt entry. As a result, lint now fails onmain(failing run) with 31 unbaselinedreact-hooks/refserrors inSearchPage.tsx.eslint-seatbeltonly auto-tightens the baseline, it never auto-loosens it (see.github/workflows/lint.yml), so the workflow cannot self-heal after a straight revert. This PR adds the deleted line back. When #88728 is re-rolled, the auto-tighten job will remove this line again automatically.Fixed Issues
$ #89669
PROPOSAL: N/A
Tests
Offline tests
N/A — config-only change.
QA Steps
N/A — config-only change. CI `lint / ESLint check` going green on `main` after merge is the verification.
PR Author Checklist
Screenshots/Videos
Android: Native
N/A — config-only change.
Android: mWeb Chrome
N/A — config-only change.
iOS: Native
N/A — config-only change.
iOS: mWeb Safari
N/A — config-only change.
MacOS: Chrome / Safari
N/A — config-only change.
Made with Cursor