Loading never gets updated to "false"
See original GitHub issueHi, 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:
- Created 7 years ago
- Reactions:51
- Comments:138 (35 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
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’sfalse
). So in thegraphql
container I had to set{ options: { notifyOnNetworkStatusChange: true } }
.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.