fetchMore networkStatus and notifyOnNetworkChange not working in 3.3.7
See original GitHub issueIn the latest version (3.3.7) the networkStatus for fetchingMore is not working:
export declare enum NetworkStatus {
loading = 1,
setVariables = 2,
fetchMore = 3,
refetch = 4,
poll = 6,
ready = 7,
error = 8
}
But when calling fetchMore, the networkStatus is never changed to 3 when notifyOnNetworkChange = true…
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:8 (1 by maintainers)
Top Results From Across the Web
react apollo - Why would data.loading not become true during ...
I was having the same problem. Turns out you have to opt in by setting notifyOnNetworkStatusChange to true in your options:.
Read more >FetchMore not updating data with queryroot : r/graphql - Reddit
FetchMore not updating data with queryroot. Hi! I'm trying to get some products in a specific collection and show them on the screen....
Read more >Issues · apollographql/apollo-client · GitHub - amd-drivers.org
[Unhandled promise rejection: Error: undefined is not an object (evaluating ... fetchMore networkStatus and notifyOnNetworkChange not working in 3.3.7 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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’m seeing the same issue. I’m using local-only fields in my query and when my local-only fields change, it refetches from the network, but does not update the
loading
andnetworkStatus
variables.I’m seeing the same … I’m expecting that if a call to
fetchMore
triggers a network call, then eitherloading
ornetworkStatus
should be updated so I can let the user know that data is loading.I have a query setup like this:
Then I have a sort function that gets called when a user wants to change the sorting:
I can see that this triggers a network call, but the
loading
always remainsfalse
andnetworkStatus
always stays at 7.This query is configured to use the
relayStylePagination
from@apollo/client/utilities
, btw