Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 在某些特殊情况下,针对 wagmi 的 provider 连接的状态不准确 #1318

Open
LCJove opened this issue Jan 8, 2025 · 2 comments
Assignees

Comments

@LCJove
Copy link
Collaborator

LCJove commented Jan 8, 2025

What happens?

目前我们的连接状态是通过是否有 address 来判断,但是在钱包锁定的情况下,address 依旧是可以取到的,但是和 connector 相关的 操作都会导致失败。

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

  1. 正常连接钱包
  2. 新起一个新的 tab,关闭之前的 tab
  3. 在新的 tab 页锁定钱包,这一步是为了模拟长时间不操作钱包,钱包自动锁定的机制
  4. 之后打开之前连接钱包的页面,此时会发现依旧是连接的状态,但是 disconnect 会失败

Context

  • Ant Design Web3 Version:
  • Node Version:
  • Platform:
@LCJove LCJove self-assigned this Jan 8, 2025
@LCJove
Copy link
Collaborator Author

LCJove commented Jan 9, 2025

继续观察了一下,如果是采用的网络魔法的话,是可以在非常短的时间内断开
但是如果没有魔法的话,就会有较长的等待断开时间。发现是连接 relay.walletconnect.com 这个 websocket 超时

@yutingzhao1991
Copy link
Collaborator

我之前也感觉断开连接经常会有点不太灵敏,这个确实要排查一下,这个细节对体验还是蛮重要的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants