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.

Loading never gets updated to "false"

See original GitHub issue

Hi, this is very indeterministic behaviour. But sometimes the loading flag never get updated to true false. I can see that data are correctly received by client in the console. Any idea how can I debug this to report why is it not getting updated?

[EDIT]: I can report that it only happens on queries that return arrays of fields

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:51
  • Comments:138 (35 by maintainers)

github_iconTop GitHub Comments

55reactions
bradleyayerscommented, Aug 19, 2017

I actually had a really similar issue to this, but I was using react-apollo and my component was getting stuck in “loading=true” state. Turns out the problem was that I hadn’t specified notifyOnNetworkStatusChange=true (by default it’s false). So in the graphql container I had to set { options: { notifyOnNetworkStatusChange: true } }.

43reactions
helfercommented, Jun 17, 2017

Can I get a show of hands for how many people are still seeing this issue or a similar one? Please vote 👍 if you’re having the issue.

If one or more of you could provide a reproduction using the react-apollo-error-template, that would also help us greatly speed up the process of finding and fixing this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Queries - Apollo GraphQL Docs
When loading is false and there is no error , the query has completed. The component renders a dropdown menu that's populated with...
Read more >
Apollo query loading is always false - Stack Overflow
The only way to fetch data for class components is through client.query() The problem is that loading state is always false. const client...
Read more >
Fix Chrome update problems & failed updates - Google Support
If you're having problems updating Chrome on your computer, ... Use a recent operating system to make sure you continue to get the...
Read more >
7 Reasons Why Images Are Not Loading on Your Website
If the path to this folder and the files inside of it are incorrect, the images will not load properly because the browser...
Read more >
Websites don't load - troubleshoot and fix error messages
Open a new tab and check to see if you can load another website like google.com or mozilla.org. · Launch another browser, like...
Read more >

github_iconTop Related Medium Post

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