provider.enable Doesn't Resolve
See original GitHub issueCalling provider.enable
to show the QR modal works, but if the user closes the modal by clicking the cross and then provider.enable
is called again, the QR modal doesn’t render and the promise never resolves.
Version 1.0.0-beta.47
This code can be run to replicate the issue:
import WalletConnectProvider from "@walletconnect/web3-provider";
const provider = new WalletConnectProvider({
infuraId: '<INFURA_ID>'
});
async function run() {
console.log("calling enable first time");
await provider
.enable()
.then(() => console.log("first call resolved"))
.catch(() => console.log("first call error"));
console.log("calling enable second time");
await provider
.enable()
.then(() => console.log("second call resolved"))
.catch(() => console.log("second call error"));
}
run()
// -> calling enable first time
// -> first call error
// -> calling enable second time
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:23 (2 by maintainers)
Top Results From Across the Web
Provider Requirements - Configuration Language | Terraform
Providers are plugins that allow Terraform to interact with services, cloud providers, and other APIs. Learn how to declare providers in a configuration....
Read more ><provider> | Android Developers
A content provider is a subclass of ContentProvider that supplies structured access to data managed by the application.
Read more >Git missing in VS Code – No source control providers
i'm having the same issue. environments: windows 10 i tried all the solutions above, but does not work. then, there's a official update...
Read more >User account from identity provider does not exist in tenant ...
If your app registration is set to a single-tenant account type, users from other directories or identity providers can't sign in to that ......
Read more >Set up a VPC endpoint service to use a custom private DNS ...
Note: If your service provider doesn't require their acceptance, you can turn on private DNS names and then skip the following steps. Contact ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please reopen this issue @pedrouid
@pedrouid This demo illustrates that this bug persists and the issue should be re-opened