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
Disconnecting from a Dapp via Coinbase Wallet triggers a page reload when the injected provider (not SDK) has reloadOnDisconnect set to false.
Steps
Retrieve injected provider:
const { ethereum } = window;
let eip1193Provider = ethereum;
if (ethereum.providers?.length) {
ethereum.providers.forEach((p) => {
if (p.isCoinbaseWallet) {
eip1193Provider = p;
}
});
}
Set reloadOnDisconnect to false:
eip1193Provider.reloadOnDisconnect = false;
Disconnect from Dapp using Coinbase Wallet browser extension
Page will reload
Expected behavior
Disconnecting from a Dapp via Coinbase Wallet browser extension should not reload the page if the injected provider has reloadOnDisconnect set false or undefined.
Version
No response
Additional info
No response
Desktop
No response
Smartphone
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Disconnecting from a Dapp via Coinbase Wallet triggers a page reload when the injected provider (not SDK) has
reloadOnDisconnect
set tofalse
.Steps
reloadOnDisconnect
to false:Expected behavior
Disconnecting from a Dapp via Coinbase Wallet browser extension should not reload the page if the injected provider has
reloadOnDisconnect
setfalse
orundefined
.Version
No response
Additional info
No response
Desktop
No response
Smartphone
No response
The text was updated successfully, but these errors were encountered: