-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useQuery not updating loading state #6253
Comments
Try |
The same problem when using const { data, loading, error, networkStatus } = useQuery(MY_CERTAIN_QUERY)
// loading is aways true
// networkStatus always equals to 1 Then, I tried
I'm very sure that my QUERY is correct. The Network of Chrome DevTools shows the request was returned with data correctly. By the way, not all of my queries can meet this problem, just some of them, but I cannot know why and how to fix it. The workaround, I set |
@benjamn The loading works. But there is a new issue with |
It looks like the original issue was fixed by |
Intended outcome:
Once the query is complete it
loading
should befalse
.Actual outcome:
The
loading
state is alwaystrue
. This results in the page loading infinitely.How to reproduce the issue:
useQuery
from@apollo/client@^3.0.0-beta.44
.loading
.Versions
System:
Binaries:
Browsers:
npmPackages:
The text was updated successfully, but these errors were encountered: