You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intended outcome: loading should not be updated when calling refetch. Even when using fetchPolicy cache-and-network
Actual outcome: loading became true again when calling refetch. This is the behaviour without a specified fetchPolicy. (And no notifyOnNetworkStatusChange specified)
I am seeing the same issue in our app. With no data changed, the component still got updated twice when calling refretch. This is only happening with the cache-and-network fetchPolicy. We are using the Apollo client 3.7.16. The latest 3.9.8 also has this problem.
Intended outcome:
loading
should not be updated when calling refetch. Even when using fetchPolicy cache-and-networkActual outcome:
loading
became true again when calling refetch. This is the behaviour without a specified fetchPolicy. (And nonotifyOnNetworkStatusChange
specified)How to reproduce the issue:
https://codesandbox.io/s/elastic-dan-r056e3?file=/src/index.jsx:461-498
You can comment the fetchPolicy line and see loading is not shown when refetching.
Versions
See sandbox, started from sandbox template.
The text was updated successfully, but these errors were encountered: