Skip to content
Open
Changes from all commits
Commits
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
9 changes: 6 additions & 3 deletions app/components/Nav/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
import { useNetworkSelection } from '../../hooks/useNetworkSelection/useNetworkSelection';
import { useIsOnBridgeRoute } from '../../UI/Bridge/hooks/useIsOnBridgeRoute';
import { CardVerification } from '../../UI/Card/sdk';
import { isE2E } from '../../../util/test/utils';

const Stack = createStackNavigator();

Expand Down Expand Up @@ -168,7 +169,7 @@
} else {
props.setInfuraAvailabilityNotBlocked();
}
// eslint-disable-next-line react-hooks/exhaustive-deps

Check warning on line 172 in app/components/Nav/Main/index.js

View workflow job for this annotation

GitHub Actions / scripts (lint)

React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
}, [
props.navigation,
props.providerType,
Expand All @@ -193,9 +194,11 @@
if (backgroundMode.current) {
removeNotVisibleNotifications();

BackgroundTimer.runBackgroundTimer(async () => {
await updateIncomingTransactions();
}, AppConstants.TX_CHECK_BACKGROUND_FREQUENCY);
if (!isE2E) {
BackgroundTimer.runBackgroundTimer(async () => {
await updateIncomingTransactions();
}, AppConstants.TX_CHECK_BACKGROUND_FREQUENCY);
}
}
},
[backgroundMode, removeNotVisibleNotifications],
Expand Down Expand Up @@ -376,7 +379,7 @@
removeConnectionStatusListener.current &&
removeConnectionStatusListener.current();
};
// eslint-disable-next-line react-hooks/exhaustive-deps

Check warning on line 382 in app/components/Nav/Main/index.js

View workflow job for this annotation

GitHub Actions / scripts (lint)

React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
}, [connectionChangeHandler]);

const openDeprecatedNetworksArticle = () => {
Expand Down
Loading