Connect events are not emitted? #300
Unanswered
monsonjeremy
asked this question in
Ideas
Replies: 1 comment
-
wagmi connectors aren’t EIP-1193 providers so aren’t required to emit events like this. That said the new version of wagmi will allow for subscribing to events in Vanilla JS outside of React. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Package Version
0.2.21
Current Behavior
When a user connects a wallet using either the injected providers (wallet link or metamask) or the wallet connect provider, there is no
emit('connect')
called. This is useful for syncing with logic that may exist outside of react or need to be invoked using the event listeners (since.on('connect')
is provided)Expected Behavior
Whenever a wallet is connected, there should be a call to
wallet.emit('connect')
in order to send those events.Steps To Reproduce
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
https://codesandbox.io/s/holy-thunder-t4yzxb?file=/src/App.tsx
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions