When setting new variables using useQuery, the networkStatus is always 1 (loading). This is not the case with the Query component which returns 2 (setVariables).
Example with useQuery: https://codesandbox.io/s/ox93pjm0w5
Example with Query component: https://codesandbox.io/s/3xp667vonm
It also resets data when querying an uncached query which is not desirable. See Query component example for expected behaviour which does not return to Loading... state when variables change.
When setting new variables using
useQuery, thenetworkStatusis always1(loading). This is not the case with theQuerycomponent which returns2(setVariables).Example with
useQuery: https://codesandbox.io/s/ox93pjm0w5Example with
Querycomponent: https://codesandbox.io/s/3xp667vonmIt also resets
datawhen querying an uncached query which is not desirable. SeeQuerycomponent example for expected behaviour which does not return toLoading...state when variables change.