sol-wallet-adapter icon indicating copy to clipboard operation
sol-wallet-adapter copied to clipboard

When connecting, no event is emitted on failure

Open jordaaash opened this issue 3 years ago • 1 comments

When using the web version, if the popup is blocked by the browser or closed by the user, the connect call will hang and never emit an event or reject its promise.

Similarly for the extension, if the user declines permission to connect or closes the extension popup, the connect call will never emit an event. It also resolves its promise immediately (https://github.com/project-serum/sol-wallet-adapter/issues/24).

Dapps can listen for a connect event but cannot reliably detect the connection failure and are left in an unknown state.

jordaaash avatar Sep 10 '21 18:09 jordaaash