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
I'm using usequery to to fetch data. As well I'm using subscriberToMore to update cache on subscription but when I update cache then query is calling again. I'm unable to understand why it's happening. Please help me to fix on that issue.
I ran into the same issue recently and was able to fix it by changing the query's fetchPolicy to cache-first to avoid a query over the network whenever the query's data was updated. refetch always queries over the network no matter what fetchPolicy is set. So, with cache-first fetchPolicy the query is only fetched over the network on the first try and on refetch.
I don't know if changing the fetchPolicy is a valid option in your case, but hopefully this helps.
Hi,
I'm using usequery to to fetch data. As well I'm using subscriberToMore to update cache on subscription but when I update cache then query is calling again. I'm unable to understand why it's happening. Please help me to fix on that issue.
The text was updated successfully, but these errors were encountered: