Skip to content

Graph data fails to load initially in most cases #1239

@drewcook

Description

@drewcook

Describe the bug
The graph container fetches data, but often may fetch when a param is still undefined. This results in the error state with reload button. This doesn't happen 100% of the time, but most of the time.

There is likely just some small optimizations that can occur in the ApyGraphContainer.tsx component file to prevent fetching unless all params are available, and to keep the loading state until it has them.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any reserve overview page with graph data
  2. See the error state
  3. Click the reload button
  4. See the proper data

Expected behavior
The data should pull through correctly on the initial fetch.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnew issueThis issue has not been triaged by the core team yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions