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 worked around this with a subclass of the InMemoryCache which ignores cache writes coming from Subscription queries. This is not going to work for us much longer as we will be updating entities in the store with other subscriptions.
The text was updated successfully, but these errors were encountered:
Currently `client.subscribe` calls are ignoring `no-cache`
fetch policy settings. These changes make sure `no-cache`
avoids writing subscription results to the cache.
Fixes#3709.
Fixes#3532.
Intended outcome:
Subscriptions made with a network-policy of "no-cache" should not be put into the Apollo cache.
Actual outcome:
The current store code puts all subscription results in the cache.
https://github.com/apollographql/apollo-client/blob/master/packages/apollo-client/src/core/QueryManager.ts#L913
https://github.com/apollographql/apollo-client/blob/master/packages/apollo-client/src/data/store.ts#L64
Versions
2.3.2
I worked around this with a subclass of the InMemoryCache which ignores cache writes coming from Subscription queries. This is not going to work for us much longer as we will be updating entities in the store with other subscriptions.
The text was updated successfully, but these errors were encountered: