File tree Expand file tree Collapse file tree
packages/thirdweb/src/react Expand file tree Collapse file tree 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(
148148 // checking if logged in
149149 isLoggedIn : isLoggedInQuery . data ,
150150 isLoading : isLoggedInQuery . isFetching ,
151+ isPending : isLoggedInQuery . isPending ,
151152 } ;
152153}
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ function ConnectButtonInner(
479479 if ( siweAuth . requiresAuth ) {
480480 // loading state if loading
481481 // 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 ) {
483483 const combinedClassName = `${ props . connectButton ?. className || "" } ${ TW_CONNECT_WALLET } ` ;
484484 return (
485485 < AnimatedButton
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const SignatureScreen: React.FC<{
7171 }
7272 } , [ onDone , siweAuth ] ) ;
7373
74- if ( ! wallet || siweAuth . isLoading ) {
74+ if ( ! wallet || siweAuth . isPending ) {
7575 return < LoadingScreen data-testid = "loading-screen" /> ;
7676 }
7777
You can’t perform that action at this time.
0 commit comments