We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1515e9 commit c878f6aCopy full SHA for c878f6a
1 file changed
src/components/Search/index.tsx
@@ -927,6 +927,10 @@ function Search({
927
return;
928
}
929
930
+ // Bail out when the rebuilt selection is deeply equal to the current one. Without this,
931
+ // a dep that re-derives to a new reference but the same value re-runs this effect, which
932
+ // calls setSelectedTransactions with an equivalent payload and loops until React aborts
933
+ // with "Maximum update depth exceeded". See https://github.com/Expensify/App/issues/89588
934
if (deepEqual(newTransactionList, selectedTransactions)) {
935
936
0 commit comments