question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

provider.enable Doesn't Resolve

See original GitHub issue

Calling 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
MrPeanutzcommented, Jun 30, 2021

Please reopen this issue @pedrouid

3reactions
taylorjdawsoncommented, May 28, 2021

@pedrouid This demo illustrates that this bug persists and the issue should be re-opened

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found