Skip to content

Commit

Permalink
Merge branch 'master' into IOAPPX-343-311-add-skia-add-dynamic-backgr…
Browse files Browse the repository at this point in the history
…ound-with-skia
  • Loading branch information
dmnplb authored Jul 31, 2024
2 parents 579cd4b + e2801a5 commit 6cf79b3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ts/features/newWallet/screens/WalletHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ const WalletHomeScreen = ({ route }: Props) => {
const dispatch = useIODispatch();
const isNewElementAdded = React.useRef(route.params?.newMethodAdded || false);

React.useEffect(() => {
// TODO SIW-960 Move cards request to app startup
dispatch(walletToggleLoadingState(true));
dispatch(getPaymentsWalletUserMethods.request());
dispatch(idPayWalletGet.request());
dispatch(cgnDetails.request());
}, [dispatch]);
useFocusEffect(
React.useCallback(() => {
dispatch(walletToggleLoadingState(true));
dispatch(getPaymentsWalletUserMethods.request());
dispatch(idPayWalletGet.request());
dispatch(cgnDetails.request());
}, [dispatch])
);

// Handles the "New element added" toast display once the user returns to this screen
useFocusEffect(
Expand Down

0 comments on commit 6cf79b3

Please sign in to comment.