File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @reown/appkit-wagmi-react-native ' : patch
3
+ ' @reown/appkit-auth-ethers-react-native ' : patch
4
+ ' @reown/appkit-auth-wagmi-react-native ' : patch
5
+ ' @reown/appkit-coinbase-ethers-react-native ' : patch
6
+ ' @reown/appkit-coinbase-wagmi-react-native ' : patch
7
+ ' @reown/appkit-common-react-native ' : patch
8
+ ' @reown/appkit-core-react-native ' : patch
9
+ ' @reown/appkit-ethers-react-native ' : patch
10
+ ' @reown/appkit-ethers5-react-native ' : patch
11
+ ' @reown/appkit-scaffold-react-native ' : patch
12
+ ' @reown/appkit-scaffold-utils-react-native ' : patch
13
+ ' @reown/appkit-siwe-react-native ' : patch
14
+ ' @reown/appkit-ui-react-native ' : patch
15
+ ' @reown/appkit-wallet-react-native ' : patch
16
+ ---
17
+
18
+ fix: changed condition for initial modal loading
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ export class AppKit extends AppKitScaffold {
431
431
'address' | 'isConnected' | 'chainId' | 'connector' | 'isConnecting' | 'isReconnecting'
432
432
> ) {
433
433
this . syncNetwork ( address , chainId , isConnected ) ;
434
- this . setLoading ( isConnecting || isReconnecting ) ;
434
+ this . setLoading ( ! ! connector && ( isConnecting || isReconnecting ) ) ;
435
435
436
436
if ( isConnected && address && chainId ) {
437
437
const caipAddress : CaipAddress = `${ ConstantsUtil . EIP155 } :${ chainId } :${ address } ` ;
@@ -444,8 +444,7 @@ export class AppKit extends AppKitScaffold {
444
444
this . getApprovedCaipNetworksData ( )
445
445
] ) ;
446
446
this . hasSyncedConnectedAccount = true ;
447
- } else if ( ! isConnected && this . hasSyncedConnectedAccount ) {
448
- this . close ( ) ;
447
+ } else if ( ! isConnected && ! isConnecting && ! isReconnecting && this . hasSyncedConnectedAccount ) {
449
448
this . resetAccount ( ) ;
450
449
this . resetWcConnection ( ) ;
451
450
this . resetNetwork ( ) ;
@@ -619,7 +618,8 @@ export class AppKit extends AppKitScaffold {
619
618
620
619
provider . onSetPreferredAccount ( async ( ) => {
621
620
await reconnect ( this . wagmiConfig , { connectors : [ connector ] } ) ;
622
- this . setLoading ( false ) ;
621
+ // this.setLoading(false);
622
+ // console.log('setLoading', false);
623
623
} ) ;
624
624
625
625
provider . setOnTimeout ( async ( ) => {
You can’t perform that action at this time.
0 commit comments