Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ae17af1
Fix carousel auto-scroll for tracked expenses submitted from Self DM …
MelvinBot Feb 27, 2026
b94dabb
Fix: Resolve ESLint errors and Prettier crash
MelvinBot Feb 27, 2026
8642c4a
Fix: Apply Prettier formatting to useNewTransactionsTest.ts
MelvinBot Feb 27, 2026
f819e16
Bump ESLint max-warnings from 383 to 385
MelvinBot Feb 27, 2026
3245265
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 2, 2026
7f5c45b
fix more issues
FitseTLT Mar 3, 2026
7aa8892
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 5, 2026
24572cb
fix test
FitseTLT Mar 5, 2026
6969c53
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 9, 2026
6a8d1bc
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 13, 2026
6dea5ce
fix highlighting bug
FitseTLT Mar 16, 2026
14b6646
resolve comments
FitseTLT Mar 16, 2026
469bbb1
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 16, 2026
c59bbce
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 18, 2026
e960031
fix lint
FitseTLT Mar 18, 2026
2d27dba
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 19, 2026
9109868
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 19, 2026
f50fec1
call addPendingTransactionIDs from one place
FitseTLT Mar 19, 2026
75ca17f
minor updates
FitseTLT Mar 19, 2026
5137dd4
address review comment
FitseTLT Mar 19, 2026
5e8482c
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 19, 2026
0598f7a
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Mar 19, 2026
392fce6
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 3, 2026
cfe9aa1
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 3, 2026
45d6c26
refactor implementation
FitseTLT Apr 3, 2026
66c35f9
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 6, 2026
97bcd61
refactor implementation
FitseTLT Apr 6, 2026
a464919
minor fix
FitseTLT Apr 6, 2026
01368c2
minor fix
FitseTLT Apr 6, 2026
b9d8524
fix ts
FitseTLT Apr 6, 2026
78b0cd9
fix on review comment
FitseTLT Apr 6, 2026
c7643f8
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 9, 2026
ac0923f
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 15, 2026
5947290
minor update
FitseTLT Apr 15, 2026
a768daa
update on comments
FitseTLT Apr 15, 2026
50b89b2
minor fix
FitseTLT Apr 15, 2026
e29c53d
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 21, 2026
e5422a0
minor fix
FitseTLT Apr 21, 2026
12698a3
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 21, 2026
0750f48
put pending transaction utils in a separate file
FitseTLT Apr 22, 2026
1e3b892
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT Apr 30, 2026
3195132
fix comment
FitseTLT Apr 30, 2026
90d2d5a
Merge branch 'main' into fix-carousel-auto-scroll-problem
FitseTLT May 15, 2026
5e3edab
fis test
FitseTLT May 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ const CONST = {
ANIMATION_PAID_BUTTON_HIDE_DELAY: 300,
BACKGROUND_IMAGE_TRANSITION_DURATION: 1000,
SCREEN_TRANSITION_END_TIMEOUT: 1000,
PENDING_TRANSACTION_DELETION_DELAY: 4000,
PENDING_TRANSACTION_SCROLL_DELAY: 1000,

// Delay before pre-inserting the Search fullscreen route under the RHP on the confirmation screen.
// Chosen to be long enough for the RHP entrance animation to complete (~250ms) and avoid jank
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function MoneyRequestReportPreviewContent({
viewOffset: -2 * styles.gap2.gap,
animated: true,
});
}, CONST.ANIMATED_TRANSITION);
}, CONST.PENDING_TRANSACTION_SCROLL_DELAY);

// We only want to scroll to a new transaction when the set of new transaction IDs changes.
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {useIsFocused} from '@react-navigation/core';
import type {ListRenderItem} from '@shopify/flash-list';
import React, {useCallback, useMemo, useRef, useState} from 'react';
import type {LayoutChangeEvent} from 'react-native';
Expand All @@ -20,7 +21,7 @@ import {contextMenuRef} from '@pages/inbox/report/ContextMenu/ReportActionContex
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import {hasOnceLoadedReportActionsSelector} from '@src/selectors/ReportMetaData';
import {hasOnceLoadedReportActionsSelector, pendingNewTransactionIDsSelector} from '@src/selectors/ReportMetaData';
import type {Transaction} from '@src/types/onyx';
import MoneyRequestReportPreviewContent from './MoneyRequestReportPreviewContent';
import type {MoneyRequestReportPreviewProps} from './types';
Expand Down Expand Up @@ -120,7 +121,11 @@ function MoneyRequestReportPreview({
const [hasOnceLoadedReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.RAM_ONLY_REPORT_LOADING_STATE}${chatReportID}`, {
selector: hasOnceLoadedReportActionsSelector,
});
const newTransactions = useNewTransactions(hasOnceLoadedReportActions, transactions);
const [pendingNewTransactionIDs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${chatReportID}`, {
selector: pendingNewTransactionIDsSelector,
});
const isFocused = useIsFocused();
const newTransactions = useNewTransactions(hasOnceLoadedReportActions, transactions, pendingNewTransactionIDs, chatReportID, isFocused);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From #98308: Don't pass the transactions list to the hook until it's a complete snapshot. useNewTransactions already skips diffing when given undefined, so the key is to check isDeliveryComplete before passing transactions to it.

const newTransactionIDs = new Set(newTransactions.map((transaction) => transaction.transactionID));

const transactionPreviewContainerStyles = [styles.h100, reportPreviewStyles.transactionPreviewCarouselStyle];
Expand Down
54 changes: 51 additions & 3 deletions src/hooks/useNewTransactions.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,77 @@
import {useEffect, useMemo, useRef} from 'react';
import {deletePendingNewTransactionIDs} from '@libs/actions/IOU/PendingNewTransactions';
import CONST from '@src/CONST';
import type {Transaction} from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import usePrevious from './usePrevious';

/**
* This hook returns new transactions that have been added since the last transactions update.
* This hook should be used only in the context of highlighting the new transactions on the Report table view.
*
* When `pendingNewTransactionIDs` is provided, those transactions will be treated as new even on the
* first load. This handles the case where a transaction was created before the component mounts
* (e.g., submitting a tracked expense from Self DM to a workspace on Web).
*/
function useNewTransactions(hasOnceLoadedReportActions: boolean | undefined, transactions: Transaction[] | undefined) {
// If we haven't loaded report yet we set previous transactions to undefined.
function useNewTransactions(
hasOnceLoadedReportActions: boolean | undefined,
transactions: Transaction[] | undefined,
pendingNewTransactionIDs?: Record<string, true | null>,
reportID?: string,
isFocused?: boolean,
) {
// If we haven't loaded report yet we set previous transaction ids to undefined.
const prevTransactions = usePrevious(hasOnceLoadedReportActions ? transactions : undefined);

// We need to skip the first transactions change, to avoid highlighting transactions on the first load.
const skipFirstTransactionsChange = useRef(!hasOnceLoadedReportActions);

const newTransactions = useMemo(() => {
// If isFocused is not passed (=undefined) we will not return empty.
if (isFocused === false) {
return CONST.EMPTY_ARRAY as unknown as Transaction[];
}

if (transactions === undefined || prevTransactions === undefined || transactions.length <= prevTransactions.length) {
// When a transaction is submitted from another report (e.g., Self DM → workspace), it is
// already in the transactions list by the time this component mounts.
// So we use pendingNewTransactionIDs from report metadata to identify these transactions on first load.
if (isFocused && reportID && !isEmptyObject(pendingNewTransactionIDs) && transactions?.length) {
const pendingSet = new Set(Object.keys(pendingNewTransactionIDs));
const pendingTransactions = transactions.filter(({transactionID}) => pendingSet.has(transactionID) && pendingNewTransactionIDs[transactionID]);
return pendingTransactions;
}
return CONST.EMPTY_ARRAY as unknown as Transaction[];
}
if (skipFirstTransactionsChange.current) {
skipFirstTransactionsChange.current = false;
return CONST.EMPTY_ARRAY as unknown as Transaction[];
}
return transactions.filter((transaction) => !prevTransactions?.some((prevTransaction) => prevTransaction.transactionID === transaction.transactionID));
}, [transactions, prevTransactions]);

// 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.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [transactions, reportID, isFocused]);
Comment on lines +52 to +55

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Recompute pending highlights when metadata updates

This memo reads pendingNewTransactionIDs (inside the first-load branch) but excludes it from the dependency list, which means metadata-only updates can be ignored until transactions changes again. In the cross-navigation path, pending IDs are merged after navigation is triggered, so the preview can mount with pendingNewTransactionIDs still empty and then never recalculate when the pending ID arrives, causing the newly submitted expense to miss auto-scroll/highlight. The fix is to make pending-ID changes trigger recomputation (and handle highlight lifetime separately).

Useful? React with 👍 / 👎.


useEffect(() => {
if (!pendingNewTransactionIDs) {
return;
}
const pendingSet = new Set(Object.keys(pendingNewTransactionIDs));
const pendingTransactions = newTransactions.filter(({transactionID}) => pendingSet.has(transactionID) && pendingNewTransactionIDs[transactionID]);
if (!pendingTransactions.length) {
return;
}

// We deletePendingNewTransactionIDs after the scroll and highlight has occurred.
setTimeout(() => {
deletePendingNewTransactionIDs(
reportID,
pendingTransactions.map((transaction) => transaction.transactionID),
);
}, CONST.PENDING_TRANSACTION_DELETION_DELAY);
}, [pendingNewTransactionIDs, newTransactions, reportID]);

// In case when we have loaded the report, but there were no transactions in it, then we need to explicitly set skipFirstTransactionsChange to false, as it will be not set in the useMemo above.
useEffect(() => {
Expand Down
14 changes: 13 additions & 1 deletion src/libs/Navigation/helpers/navigateAfterExpenseCreate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {addPendingNewTransactionIDs} from '@libs/actions/IOU/PendingNewTransactions';
import getIsNarrowLayout from '@libs/getIsNarrowLayout';
import Log from '@libs/Log';
import Navigation, {navigationRef} from '@libs/Navigation/Navigation';
Expand All @@ -17,6 +18,7 @@ type NavigateAfterExpenseCreateParams = {
isFromGlobalCreate?: boolean;
isInvoice?: boolean;
hasMultipleTransactions: boolean;
shouldAddPendingNewTransactionIDs?: boolean;
};

/**
Expand All @@ -26,14 +28,24 @@ type NavigateAfterExpenseCreateParams = {
* - If it is created on the inbox tab, it will open the chat report containing that expense.
* - If it is created elsewhere, it will navigate to Reports > Expense and highlight the newly created expense.
*/
function navigateAfterExpenseCreate({activeReportID, transactionID, isFromGlobalCreate, isInvoice, hasMultipleTransactions}: NavigateAfterExpenseCreateParams) {
function navigateAfterExpenseCreate({
activeReportID,
transactionID,
isFromGlobalCreate,
isInvoice,
hasMultipleTransactions,
shouldAddPendingNewTransactionIDs = false,
}: NavigateAfterExpenseCreateParams) {
const isUserOnInbox = isReportTopmostSplitNavigator();

// If the expense is not created from global create or is currently on the inbox tab,
// we just need to dismiss the money request flow screens
// and open the report chat containing the IOU report
if (!isFromGlobalCreate || isUserOnInbox || !transactionID) {
dismissModalAndOpenReportInInboxTab(activeReportID, isInvoice, hasMultipleTransactions);
if (shouldAddPendingNewTransactionIDs) {
addPendingNewTransactionIDs(activeReportID, transactionID);
}
return;
}

Expand Down
4 changes: 3 additions & 1 deletion src/libs/actions/IOU/NavigationHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ function handleNavigateAfterExpenseCreate({
transactionID,
isFromGlobalCreate,
isInvoice,
shouldAddPendingNewTransactionIDs = false,
}: {
activeReportID?: string;
transactionID?: string;
isFromGlobalCreate?: boolean;
isInvoice?: boolean;
shouldAddPendingNewTransactionIDs?: boolean;
}) {
const hasMultipleTransactions = Object.values(getAllTransactions()).filter((transaction) => transaction?.reportID === activeReportID).length > 0;
navigateAfterExpenseCreate({activeReportID, transactionID, isFromGlobalCreate, isInvoice, hasMultipleTransactions});
navigateAfterExpenseCreate({activeReportID, transactionID, isFromGlobalCreate, isInvoice, hasMultipleTransactions, shouldAddPendingNewTransactionIDs});
}

export {dismissModalAndOpenReportInInboxTab, handleNavigateAfterExpenseCreate, highlightTransactionOnSearchRouteIfNeeded};
25 changes: 25 additions & 0 deletions src/libs/actions/IOU/PendingNewTransactions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Onyx from 'react-native-onyx';
import ONYXKEYS from '@src/ONYXKEYS';

function addPendingNewTransactionIDs(reportID: string | undefined, transactionID: string | undefined) {
if (!reportID || !transactionID) {
return;
}

// We are saving in object form so that consecutive onyx merge will not reset previous value.
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`, {pendingNewTransactionIDs: {[transactionID]: true}});
}

function deletePendingNewTransactionIDs(reportID: string | undefined, transactionIDs: string[]) {
if (!reportID) {
return;
}

const pendingNewTransactionIDs: Record<string, null> = {};
for (const transactionID of transactionIDs) {
Object.assign(pendingNewTransactionIDs, {[transactionID]: null});
}
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`, {pendingNewTransactionIDs});
}

export {addPendingNewTransactionIDs, deletePendingNewTransactionIDs};
2 changes: 1 addition & 1 deletion src/libs/actions/IOU/PerDiem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ function submitPerDiemExpense(submitPerDiemExpenseInformation: PerDiemExpenseInf
notifyNewAction(activeReportID, undefined, participantParams.payeeAccountID === currentUserAccountIDParam);
}

return {iouReport};
return {iouReport, transactionID: transaction.transactionID};
}

/**
Expand Down
8 changes: 7 additions & 1 deletion src/libs/actions/IOU/Split.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2085,8 +2085,14 @@ function createDistanceRequest(distanceRequestInformation: CreateDistanceRequest
const activeReportID = isMoneyRequestReport && report?.reportID ? report.reportID : parameters.chatReportID;

if (shouldHandleNavigation) {
const navigationActiveReportID = backToReport ?? activeReportID;
highlightTransactionOnSearchRouteIfNeeded(isFromGlobalCreate, parameters.transactionID, CONST.SEARCH.DATA_TYPES.EXPENSE);
handleNavigateAfterExpenseCreate({activeReportID: backToReport ?? activeReportID, isFromGlobalCreate, transactionID: parameters.transactionID});
handleNavigateAfterExpenseCreate({
activeReportID: navigationActiveReportID,
isFromGlobalCreate,
transactionID: parameters.transactionID,
shouldAddPendingNewTransactionIDs: navigationActiveReportID === parameters.chatReportID,
});
}

if (!isMoneyRequestReport) {
Expand Down
6 changes: 4 additions & 2 deletions src/libs/actions/IOU/TrackExpense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1849,12 +1849,13 @@ function requestMoney(requestMoneyInformation: RequestMoneyInformation): {iouRep

if (!requestMoneyInformation.isRetry) {
highlightTransactionOnSearchRouteIfNeeded(isFromGlobalCreate, transaction.transactionID, CONST.SEARCH.DATA_TYPES.EXPENSE);

if (shouldHandleNavigation) {
const navigationReportID = backToReport ?? activeReportID;
handleNavigateAfterExpenseCreate({
activeReportID: backToReport ?? activeReportID,
activeReportID: navigationReportID,
transactionID: transaction.transactionID,
isFromGlobalCreate,
shouldAddPendingNewTransactionIDs: navigationReportID === chatReport.reportID,
});
}
}
Expand Down Expand Up @@ -2655,6 +2656,7 @@ function trackExpense(params: CreateTrackExpenseParams) {
activeReportID,
transactionID: transaction?.transactionID,
isFromGlobalCreate,
shouldAddPendingNewTransactionIDs: action === CONST.IOU.ACTION.CATEGORIZE || action === CONST.IOU.ACTION.SHARE,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,10 @@ function useExpenseSubmission(params: UseExpenseSubmissionParams) {
if (shouldHandleNav && result && activeReportID) {
navigateAfterExpenseCreate({
activeReportID,
transactionID: transaction.transactionID,
transactionID: result.transactionID,
isFromGlobalCreate: transaction.isFromFloatingActionButton ?? transaction.isFromGlobalCreate,
hasMultipleTransactions: reportTransactions.length > 0,
shouldAddPendingNewTransactionIDs: activeReportID === chatReportID,
});
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/selectors/ReportMetaData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ const isLoadingInitialReportActionsSelector = (loadingState: OnyxEntry<ReportLoa
const pendingChatMembersSelector = (reportMetadata: OnyxEntry<ReportMetadata>): OnyxEntry<ReportMetadata> =>
reportMetadata ? {pendingChatMembers: reportMetadata.pendingChatMembers} : undefined;

export {isActionLoadingSelector, hasOnceLoadedReportActionsSelector, isLoadingInitialReportActionsSelector, pendingChatMembersSelector};
const pendingNewTransactionIDsSelector = (reportMetadata: OnyxEntry<ReportMetadata>) => reportMetadata?.pendingNewTransactionIDs;

export {isActionLoadingSelector, hasOnceLoadedReportActionsSelector, isLoadingInitialReportActionsSelector, pendingNewTransactionIDsSelector, pendingChatMembersSelector};
3 changes: 3 additions & 0 deletions src/types/onyx/ReportMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ type ReportMetadata = {

/** Pending expense action for DEW policies (e.g., SUBMIT or APPROVE in progress) */
pendingExpenseAction?: ValueOf<typeof CONST.EXPENSE_PENDING_ACTION>;

/** Transaction IDs that were just submitted/moved to this report and should be highlighted on first load */
pendingNewTransactionIDs?: Record<string, true | null>;
};

export default ReportMetadata;
Expand Down
66 changes: 66 additions & 0 deletions tests/unit/useNewTransactionsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,72 @@ describe('useNewTransactions with transactions in cache', () => {
});
});

describe('useNewTransactions with pendingNewTransactionIDs (cross-navigation)', () => {
const transactionsAlreadyInReport = [
{transactionID: '2', amount: 200, created: '2023-10-02', currency: 'USD', reportID: 'report1', merchant: ''},
{transactionID: '3', amount: 300, created: '2023-10-03', currency: 'USD', reportID: 'report1', merchant: ''},
];
const newTransaction = {transactionID: '1', amount: 100, created: '2023-10-01T00:00:00Z', currency: 'USD', reportID: 'report1', merchant: ''};

it('returns pending new transactions on first load when submitted from another report', () => {
// Simulates: user submitted expense from Self DM to workspace, then navigated to workspace chat.
// The transaction is already in the transactions list by the time the component mounts.
// 1. Component mounts, report not loaded yet, but transaction is already in Onyx
const {rerender, result} = renderHook<
Transaction[],
{transactions: Transaction[]; hasOnceLoadedReportActions: boolean; pendingNewTransactionIDs: Record<string, true | null> | undefined; isFocused?: boolean}
>((props) => useNewTransactions(props.hasOnceLoadedReportActions, props.transactions, props.pendingNewTransactionIDs, '1', props.isFocused), {
initialProps: {
hasOnceLoadedReportActions: false,
transactions: [],
pendingNewTransactionIDs: {[newTransaction.transactionID]: true},
isFocused: true,
},
});
expect(result.current).toEqual([]);

// 2. Report loads, transactions arrive (including the new one that was submitted cross-navigation)
rerender({
hasOnceLoadedReportActions: true,
transactions: [...transactionsAlreadyInReport, newTransaction],
pendingNewTransactionIDs: {[newTransaction.transactionID]: true},
isFocused: true,
});
// The pending transaction should be detected even though it was present from the first load
expect(result.current).toEqual([newTransaction]);

// 3. On subsequent renders, the pending transaction should not be returned again
rerender({
hasOnceLoadedReportActions: true,
transactions: [...transactionsAlreadyInReport, newTransaction],
pendingNewTransactionIDs: undefined,
isFocused: true,
});
expect(result.current).toEqual([]);
});

it('does not highlight transactions without pendingNewTransactionIDs', () => {
// Normal navigation to a report (no cross-navigation pending IDs)
const {rerender, result} = renderHook<
Transaction[],
{transactions: Transaction[]; hasOnceLoadedReportActions: boolean; pendingNewTransactionIDs: Record<string, true | null> | undefined}
>((props) => useNewTransactions(props.hasOnceLoadedReportActions, props.transactions, props.pendingNewTransactionIDs), {
initialProps: {
hasOnceLoadedReportActions: false,
transactions: [],
pendingNewTransactionIDs: undefined,
},
});

rerender({
hasOnceLoadedReportActions: true,
transactions: transactionsAlreadyInReport,
pendingNewTransactionIDs: undefined,
});
expect(result.current).toEqual([]);
});
});

afterAll(() => {
jest.restoreAllMocks();
});
Loading