Skip to content

Commit 6950d2f

Browse files
fix: removing getWallets from useConfigure
1 parent 86963b3 commit 6950d2f

5 files changed

Lines changed: 53 additions & 50 deletions

File tree

lib/commonjs/hooks/useConfigure.js

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/commonjs/hooks/useConfigure.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/module/hooks/useConfigure.js

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/module/hooks/useConfigure.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hooks/useConfigure.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useCallback, useEffect } from 'react';
22
import { useColorScheme } from 'react-native';
33
import { SUBSCRIBER_EVENTS } from '@walletconnect/core';
4-
import { ExplorerCtrl } from '../controllers/ExplorerCtrl';
5-
import { OptionsCtrl } from '../controllers/OptionsCtrl';
4+
// import { ExplorerCtrl } from '../controllers/ExplorerCtrl';
5+
// import { OptionsCtrl } from '../controllers/OptionsCtrl';
66
import { ConfigCtrl } from '../controllers/ConfigCtrl';
77
import { ClientCtrl } from '../controllers/ClientCtrl';
88
import { AccountCtrl } from '../controllers/AccountCtrl';
@@ -11,7 +11,7 @@ import type { IProviderMetadata, ISessionParams } from '../types/coreTypes';
1111
import { createUniversalProvider } from '../utils/ProviderUtil';
1212
import { StorageUtil } from '../utils/StorageUtil';
1313
import { ThemeCtrl } from '../controllers/ThemeCtrl';
14-
import { ToastCtrl } from '../controllers/ToastCtrl';
14+
// import { ToastCtrl } from '../controllers/ToastCtrl';
1515
import type { ThemeCtrlState } from '../types/controllerTypes';
1616

1717
interface Props {
@@ -74,19 +74,19 @@ export function useConfigure(config: Props) {
7474
/**
7575
* Fetch wallet list
7676
*/
77-
useEffect(() => {
78-
async function fetchWallets() {
79-
try {
80-
if (!ExplorerCtrl.state.wallets.total) {
81-
await ExplorerCtrl.getWallets();
82-
OptionsCtrl.setIsDataLoaded(true);
83-
}
84-
} catch (error) {
85-
ToastCtrl.openToast('Network error', 'error');
86-
}
87-
}
88-
fetchWallets();
89-
}, []);
77+
// useEffect(() => {
78+
// async function fetchWallets() {
79+
// try {
80+
// if (!ExplorerCtrl.state.wallets.total) {
81+
// await ExplorerCtrl.getWallets();
82+
// OptionsCtrl.setIsDataLoaded(true);
83+
// }
84+
// } catch (error) {
85+
// ToastCtrl.openToast('Network error', 'error');
86+
// }
87+
// }
88+
// fetchWallets();
89+
// }, []);
9090

9191
/**
9292
* Initialize provider

0 commit comments

Comments
 (0)