Skip to content

useCalls randomly got left out #835

Open

Description

@JasonHe-da

Describe the bug
Our project has a custom hooks that will go to different chain id and fetch the data to the frontend. We are using useCalls for each chainid.
Screen Shot 2022-06-21 at 16 19 27
F4F4C948-C35C-4A2F-8273-193997D8886B_4_5005_c
The issue is sometimes, the useCalls will be left out for specific chain, and in usedapp dev tool, it shows it is not even got called:
correct numbers of call:
E131B338-177C-4FDB-889B-D11BD2987159
incorrect numbers of call:
2B366623-8A3D-4C79-A615-CCBB652E8C89
In this case, one of three chains information is not getting called on.
those calls are never got executed(we have set refresh to 'never').
It happens randomly.

Does anyone knows why that is happening and how to fix it?

Software versions

  • useDapp version: 1.0.10

Activity

  1. yivlad commented on Jun 22, 2022

    @yivlad
    Collaborator

    Hey @JasonHe-da , does the issue still persist in the latest version of useDApp (1.0.12)?

  2. JasonHe-da commented on Jun 22, 2022

    @JasonHe-da
    Author

    @yivlad it is still not working: it turns out to be one of three useCalls return undefined for all the data randomly and not even trigger calls in the usedapp dev tool, but if we use useCalls for only one chain, it works just fine

  3. mj426382 commented on Jun 23, 2022

    @mj426382
    Contributor

    @JasonHe-da can you show us your config?

  4. JasonHe-da commented on Jun 23, 2022

    @JasonHe-da
    Author
  5. yivlad commented on Jun 24, 2022

    @yivlad
    Collaborator

    @JasonHe-da I have been trying to reproduce what you were talking about, but unfortunately with no luck. Can you provide minimal reproducible example or some other guidance how to reproduce the bug? (I'm assuming that in config you showed us you deleted readOnlyUrls and mutlicallAddresses)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions