LedgerHQ / wallet-connect-live-app

https://wallet-connect-live-app.vercel.app/
7 stars 6 forks source link

LIVE-12649 relayer connection indicator + reconnection #168

Closed Wozacosta closed 4 months ago

Wozacosta commented 4 months ago

๐Ÿ“ Description

SCR-20240523-rjhf

I can easily replicate losing the relayer connection by just waiting some minutes, this was surely the source of many bugs.

src/store/web3wallet.store.ts

SCR-20240523-rjuk

โ“ Context

๐Ÿง“ : Flow example when connection is lost / re-activated: https://docs.walletconnect.com/web3wallet/best_practises#connection-state

๐Ÿ“ธ Demo

BEFORE:

https://github.com/LedgerHQ/wallet-connect-live-app/assets/5050709/41025734-acb3-410a-a463-dcd9fe4b9efe

AFTER:

https://github.com/LedgerHQ/wallet-connect-live-app/assets/5050709/1d69c365-e316-4c58-82dd-056956aa67ad

๐Ÿš€ Expectations to reach

Pull Requests must pass the CI and be internally validated in order to be merged.