From 9aad81c090a1f078f14a81c46b34c19947358004 Mon Sep 17 00:00:00 2001 From: Rohit Verma Date: Wed, 24 Dec 2025 23:28:04 +0530 Subject: [PATCH 1/2] fix: use SET method to update original transaction in the Onyx store The MERGE method batch the onyx updates and feels slow when updating original transaction while splitting --- src/libs/actions/IOU.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index bef8fc4e6f69..8a783e401e47 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -15115,8 +15115,9 @@ function updateSplitTransactions({ } if (!isReverseSplitOperation) { + // Use SET method to update originalTransaction quickly in the Onyx optimisticData.push({ - onyxMethod: Onyx.METHOD.MERGE, + onyxMethod: Onyx.METHOD.SET, key: `${ONYXKEYS.COLLECTION.TRANSACTION}${originalTransactionID}`, value: { ...originalTransaction, From 9c8f03528aa2df57cc22fd34663aa948b6d94b8e Mon Sep 17 00:00:00 2001 From: Rohit Verma <101377978+rohit9625@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:42:59 +0530 Subject: [PATCH 2/2] refactor: update comment message Co-authored-by: Amy Evans --- src/libs/actions/IOU/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU/index.ts b/src/libs/actions/IOU/index.ts index a68be73a249f..440068c7e1bb 100644 --- a/src/libs/actions/IOU/index.ts +++ b/src/libs/actions/IOU/index.ts @@ -14116,7 +14116,7 @@ function updateSplitTransactions({ } if (!isReverseSplitOperation) { - // Use SET method to update originalTransaction quickly in the Onyx + // Use SET to update originalTransaction more quickly in Onyx as compared to MERGE to prevent UI inconsistency optimisticData.push({ onyxMethod: Onyx.METHOD.SET, key: `${ONYXKEYS.COLLECTION.TRANSACTION}${originalTransactionID}`,