Skip to content

Commit 2305bf2

Browse files
authored
Merge pull request Expensify#87747 from callstack-internal/perf/improve-reportAttributes
Fix reportAttributes recomputing all reports on transaction updates
2 parents dbd65cc + bfc3ca3 commit 2305bf2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libs/actions/OnyxDerived/configs/reportAttributes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export default createOnyxDerivedValueConfig({
185185
if (useIncrementalUpdates) {
186186
// if there are report-related updates, iterate over the updates
187187
if (updates.length > 0 || !!transactionsUpdates || !!transactionViolationsUpdates || !!policyTagsUpdates) {
188+
dataToIterate = [];
188189
if (updates.length > 0) {
189190
dataToIterate = prepareReportKeys(updates);
190191

0 commit comments

Comments
 (0)