File tree 4 files changed +8
-2
lines changed
packages/thirdweb/src/react
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Signature Screen loading state improvements
Original file line number Diff line number Diff line change @@ -148,5 +148,6 @@ export function useSiweAuth(
148
148
// checking if logged in
149
149
isLoggedIn : isLoggedInQuery . data ,
150
150
isLoading : isLoggedInQuery . isFetching ,
151
+ isPending : isLoggedInQuery . isPending ,
151
152
} ;
152
153
}
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ function ConnectButtonInner(
479
479
if ( siweAuth . requiresAuth ) {
480
480
// loading state if loading
481
481
// TODO: figure out a way to consolidate the loading states with the ones from locale loading
482
- if ( siweAuth . isLoading || siweAuth . isLoggingIn || siweAuth . isLoggingOut ) {
482
+ if ( siweAuth . isPending || siweAuth . isLoggingIn || siweAuth . isLoggingOut ) {
483
483
const combinedClassName = `${ props . connectButton ?. className || "" } ${ TW_CONNECT_WALLET } ` ;
484
484
return (
485
485
< AnimatedButton
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const SignatureScreen: React.FC<{
71
71
}
72
72
} , [ onDone , siweAuth ] ) ;
73
73
74
- if ( ! wallet || siweAuth . isLoading ) {
74
+ if ( ! wallet || siweAuth . isPending ) {
75
75
return < LoadingScreen data-testid = "loading-screen" /> ;
76
76
}
77
77
You can’t perform that action at this time.
0 commit comments