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 don't know why is this.dataStore.markSubscriptionResult() is enforced (I can't think of cases this maybe useful), and why isn't there a fetchPolicy for subscriptions.
I'll work on a PR to add fetchPolicy to subscription, please let me know if this isn't needed
Thanks
The text was updated successfully, but these errors were encountered:
oudmane
changed the title
no-cache in .subscribe()
fetchPolicy no-cache for subscriptions
May 31, 2018
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.
I have I case using apollo-client where I don't need caching at all, I set
I notice .subscribe({query}) doesn't support fetchPolicy option, also tries to cache the result.
I forked and edited apollo-client, I wrapped this
apollo-client/packages/apollo-client/src/core/QueryManager.ts
Lines 918 to 920 in 9bcdafe
inside
I don't know why is this.dataStore.markSubscriptionResult() is enforced (I can't think of cases this maybe useful), and why isn't there a fetchPolicy for subscriptions.
I'll work on a PR to add fetchPolicy to subscription, please let me know if this isn't needed
Thanks
The text was updated successfully, but these errors were encountered: