GithubHelp home page GithubHelp logo

Comments (11)

talentlessguy avatar talentlessguy commented on August 11, 2024 1

This happens exclusively with rainbow connector because it initializes WC

from rainbowkit.

talentlessguy avatar talentlessguy commented on August 11, 2024 1

@floticerus I think if you have an injected connector it won't initialize WC at all

from rainbowkit.

magiziz avatar magiziz commented on August 11, 2024 1

@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.

magiziz avatar magiziz commented on August 11, 2024

@talentlessguy I'm also able to reproduce this with Wagmi (npm create wagmi@latest).

image

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 avatar talentlessguy commented on August 11, 2024

@talentlessguy I'm also able to reproduce this with Wagmi (npm create wagmi@latest).

image

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.

magiziz avatar magiziz commented on August 11, 2024

@talentlessguy I'll look at it again and report back 👍

from rainbowkit.

floticerus avatar floticerus commented on August 11, 2024

Is there any solution for this? I don't want walletconnect and definitely don't want it opening up a websocket connection

from rainbowkit.

magiziz avatar magiziz commented on August 11, 2024

@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.

talentlessguy avatar talentlessguy commented on August 11, 2024

@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.

magiziz avatar magiziz commented on August 11, 2024

@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.

magiziz avatar magiziz commented on August 11, 2024

Going to close this issue for now since it's coming from walletConnect connector.

from rainbowkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.