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
When setting fetchPolicy to "no-cache" in useQuery, I expect Apollo client not trying to update the cache on subscribeToMore subscription data.
Actual outcome:
Apollo Client is writing the result of the subscription data into the cache.
How to reproduce the issue:
const{ data, subscribeToMore }=useQuery(MY_QUERY,{fetchPolicy: "no-cache",nextFetchPolicy: "no-cache",});useEffect(()=>subscribeToMore({document: MY_EVENT,updateQuery: (prev,{ subscriptionData })=>{// do stuffreturnnull;// I shouldn't need to return anything}}),[subscribeToMore]);
Intended outcome:
When setting
fetchPolicy
to "no-cache" inuseQuery
, I expect Apollo client not trying to update the cache onsubscribeToMore
subscription data.Actual outcome:
Apollo Client is writing the result of the subscription data into the cache.
How to reproduce the issue:
Versions
The text was updated successfully, but these errors were encountered: