-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
how to check if fetching more, network status undefined #67
Comments
@zebapy I have mostly working implementation in #68. It works without problems in the non-suspense mode. Unfortunately, the suspense mode requires some ugly hacks to work ( react-apollo-hooks/src/useQuery.ts Line 195 in 92c910f
|
Seems fine that it doesn't trigger suspense, since in my case, I want to update a button to say "loading more..." instead of hiding all the currently loaded content which happens being wrapped in some other Suspense |
It's already fixed in v0.4.0 for the non-suspense mode. For suspense the fix is quite hacky so I decided to postpone it until Suspense for data fetching is considered ready by the React team. Added to a list of know issues in #88. |
Using the query as
networkStatus
seems undefined when console logging so I can't doconst loadingMore = networkStatus === 3
The text was updated successfully, but these errors were encountered: