You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the issue is that .select() uses setName from a useState hook, and this state update does not happen synchronously. The only way I can get this to work is by breaking up the flow into 2 separate React updates.
The text was updated successfully, but these errors were encountered:
The new wallet adapter does not allow
.select(NAME)
and.connect()
in one function call.It throws a
WalletNotSelectedError
.https://socket.dev/npm/package/@manahippo/aptos-wallet-adapter/files/0.4.2/src/WalletProviders/WalletProvider.tsx#L212
I think the issue is that
.select()
usessetName
from auseState
hook, and this state update does not happen synchronously. The only way I can get this to work is by breaking up the flow into 2 separate React updates.The text was updated successfully, but these errors were encountered: