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 1e3b892 commit 3195132Copy full SHA for 3195132
1 file changed
src/hooks/useNewTransactions.ts
@@ -49,8 +49,8 @@ function useNewTransactions(
49
}
50
return transactions.filter((transaction) => !prevTransactions?.some((prevTransaction) => prevTransaction.transactionID === transaction.transactionID));
51
52
- // We don't need to recalculate on prevTransactions as it will make the value disappear on the second render
53
- // which will break the scroll and highlight on slower devices like mobile app.
+ // We don't need to recalculate on change of prevTransactions or pendingNewTransactionIDs as it will make the value
+ // disappear quickly which will break the scroll and highlight on slower devices like mobile app.
54
// eslint-disable-next-line react-hooks/exhaustive-deps
55
}, [transactions, reportID, isFocused]);
56
0 commit comments