user1108: How do i detect that my user has switched their wallet to a different one in browser. When a user connects their wallet to my web app, we store their wallet address temporarily for use in the future.Let's say they are currently interacting with my web app using Nami wallet. Nami wallet allows user to switch multiple different wallets. How do i detect that a user has switched to a different wallet.
In Solana and Ethereum they have something like this.
connector.on(...)

Is there an equivilant of that for Cardano.

user8157:      var handle: any = await window.cardano.nami.enable() handle.experimental.on('accountChange',(addresses: any ) => { 
    console.log(addresses) 
  }


1108: <p>How do i detect that my user has switched their wallet to a different one in browser. When a user connects their wallet to my web app, we store their wallet address temporarily for use in the future.Let's say they are currently interacting with my web app using Nami wallet. Nami wallet allows user to switch multiple different wallets. How do i detect that a user has switched to a different wallet.</p>
<p>In Solana and Ethereum they have something like this.</p>
<pre><code>connector.on(...)
</code></pre>
<p>Is there an equivilant of that for Cardano.</p>
 8157: <pre><code>     var handle: any = await window.cardano.nami.enable() handle.experimental.on('accountChange',(addresses: any ) =&gt; { 
    console.log(addresses) 
  }
</code></pre>
