Comments (11)
This happens exclusively with rainbow connector because it initializes WC
from rainbowkit.
@floticerus I think if you have an injected connector it won't initialize WC at all
from rainbowkit.
@floticerus There isn't a way to do this unless you don't use wallets that use WC. Like @talentlessguy said you can use injected connector (injectedWallet
) for now, but we're going to work on lazy loading the connectors soon.
from rainbowkit.
@talentlessguy I'm also able to reproduce this with Wagmi (npm create wagmi@latest).
I don't think this is a RainbowKit specific issue. If this is a security concern, then it's better to raise a PR for Wagmi here.
from rainbowkit.
@talentlessguy I'm also able to reproduce this with Wagmi (npm create wagmi@latest).
I don't think this is a RainbowKit specific issue. If this is a security concern, then it's better to raise a PR for Wagmi here.
From what I understand this happens only with a Rainbow connector in wagmi. Seems like that's where the issue is happening.
from rainbowkit.
@talentlessguy I'll look at it again and report back 👍
from rainbowkit.
Is there any solution for this? I don't want walletconnect and definitely don't want it opening up a websocket connection
from rainbowkit.
@talentlessguy WalletConnect and Wagmi team just got back to me. We could try and lazy load the connectors, but there is a problem with that. During page refresh we won't know if the user should be connected to the dApp or not and Wagmi also manages the states for that. It's best to fix these connector issues upstream instead of relying on RainbowKit, but doesn't seem that the EthereumProvider (@walletconnect/ethereum-provider
) will disable tracking in the near future.
Also WalletConnect team has mentioned that you could turn off Verify API, but that's more risky. Essentially it'll be an empty iframe that doesn't do anything.
from rainbowkit.
@magiziz what do you mean by "fixing upsteam"? do you mean in WalletConnect? Can this be patched in wagmi somehow? But wagmi's WC connector doesn't initialize on page load, only when interacting with it.
from rainbowkit.
@talentlessguy Yeah upstream in WalletConnect. I'm not sure if this can be patched in Wagmi since they wouldn't know if the user is already connected whenever the page is refreshed. They also use a setup function for WalletConnect which gets the provider on mount https://github.com/wevm/wagmi/blob/main/packages/connectors/src/walletConnect.ts#L113-L124
from rainbowkit.
Going to close this issue for now since it's coming from walletConnect
connector.
from rainbowkit.
Related Issues (20)
- Unable to use the wallet plugin that you developed HOT 6
- [bug] Cannot read properties of null (reading 'getItem') HOT 1
- [bug] Rabby wallet disconnects on page refresh HOT 1
- [bug] Extension no longer detects installed wallets when Wagmi config changes HOT 13
- [bug] Wagmi Coinbase wallet TypeError on mobile browsers HOT 5
- [bug] Module not found: Can't resolve 'lit-html' HOT 1
- [bug] Can't resolve 'events'; Can't resolve 'buffer'; Can't resolve 'lit-html' HOT 26
- [bug] <open QRcode to slow> HOT 3
- [bug] Coinbase Wallet connection redirects fail on Chrome iOS HOT 6
- [bug] CoinbaseWallet used with the QR login did not work HOT 6
- [bug] Tree-shaking isn't taking place for unused features HOT 1
- [bug] Wallet is not connected and is on pending HOT 1
- [bug] <title> Gate wallet Io connect is not found errror HOT 12
- Clicking on the Echooo wallet redirects to MetaMask HOT 10
- [bug] "Get" wallet button shows empty screen
- While doing transaction from metamask User rejected request error thrown HOT 18
- [bug] Wallet connects to multiple connectors on local storage cleanup HOT 3
- [bug] issue connecting with Compass Wallet HOT 1
- [bug][iOS] Connecting Trust Wallet opens Trust Bank SG app instead
- [bug] The title of Binance Wallet should be 'Binance Web3 Wallet' in page '/site/data/zh-CN/docs /custom-wallet-list.mdx', line 149
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rainbowkit.