-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: support custom connectors #2119
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm, the idea of defaultWagmiConfig is to save dev time, we intentionally prevent connectors to be overriden to make sure WalletConnectConnector was set correctly. For custom connector devs can always use the usual Wagmi configuration without using the default function.
Also this seem like it might add some connectors twice if the dev doesn't know what's internally
@glitch-txs There's a lot of stuff this function sets up which To avoid duplicates we can detect if a connector ID already exists in the list. If it already exists, don't add. That should solve your concerns? |
That'd be better I guess. As a point aside, I think we should also abstract the Blockchain API implementation so it could be used without this function being required. |
I'd filter out duplicates and leave it as-is. But this should be included in docs @glitch-txs @boidushya to prevent confusion |
dadea65
to
2257cde
Compare
Breaking Changes
N/A
Changes