Skip to content

Commit 15ad583

Browse files
committed
Add a note about deprecated CacheAndNetwork
1 parent 959e6bc commit 15ad583

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Writerside/topics/migration-guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,11 @@ For consistency, the `CacheKey` type is now used instead of `String` in more API
254254
- `Record.key`
255255
- `NormalizedCache.loadRecord()`
256256

257-
## Removed APIs
257+
## Removed / deprecated APIs
258258

259259
- `ApolloCacheHeaders.EVICT_AFTER_READ` is removed. Manually call `ApolloStore.remove()` when needed instead.
260260
- `NormalizedCache.remove(pattern: String)` is removed. Please open an issue if you need this feature back.
261+
- `FetchPolicy.CacheAndNetwork` is deprecated, as it caused some confusion when used with `.execute()`. This can be used instead: `fetchPolicy(FetchPolicy.CacheOnly).toFlow().onCompletion { emitAll(fetchPolicy(FetchPolicy.NetworkOnly).toFlow()) }`
261262

262263
## Other changes {id="other-changes-2"}
263264

0 commit comments

Comments
 (0)