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
{{ message }}
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
shimDisconnectKey in injected is always undefined.shimDisconnect even in connectors that extend InjectedConnector. This is because shimDisconnectKey is initialized before the id from the child class is available.
This causes issues when there are multiple connectors used that extend InjectedConnector (or are) but have different shimDisconnect values e.g. using both MetaMaskConnector with shimDisconnect:true and InjectedConnector shimDisconnect:false at the same time. In this case autoConnect will still reconnect to metamask even after disconnecting effectively ignoring the shimDisconnect value.
Expected Behavior
The shimDisconnectKey should be unique to the connector.
Steps To Reproduce
Use both MetaMaskConnector and InjectedConnector in the same Wagmi Client with different shimDisconnect values
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
shimDisconnectKey
in injected is alwaysundefined.shimDisconnect
even in connectors that extend InjectedConnector. This is becauseshimDisconnectKey
is initialized before theid
from the child class is available.This causes issues when there are multiple connectors used that extend InjectedConnector (or are) but have different shimDisconnect values e.g. using both MetaMaskConnector with shimDisconnect:true and InjectedConnector shimDisconnect:false at the same time. In this case autoConnect will still reconnect to metamask even after disconnecting effectively ignoring the shimDisconnect value.
Expected Behavior
The
shimDisconnectKey
should be unique to the connector.Steps To Reproduce
Use both MetaMaskConnector and InjectedConnector in the same Wagmi Client with different shimDisconnect values
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: