Skip to content

Commit

Permalink
keep apollo-normalized-cache and apollo-normalized-cache-incubating i…
Browse files Browse the repository at this point in the history
…n sync
  • Loading branch information
martinbonnin committed Feb 17, 2023
1 parent efff454 commit 007a593
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum class FetchPolicy {
/**
* Try the cache, if that failed, try the network.
*
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*
* This is the default behaviour.
Expand All @@ -59,7 +59,7 @@ enum class FetchPolicy {
/**
* Try the network, if that failed, try the cache.
*
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*/
NetworkFirst,
Expand All @@ -74,7 +74,7 @@ enum class FetchPolicy {
/**
* Try the cache, then also try the network.
*
* This [FetchPolicy] emits two or more [ApolloResponse]s.
* This [FetchPolicy] emits two or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*/
CacheAndNetwork,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ enum class FetchPolicy {
/**
* Try the cache, if that failed, try the network.
*
* 1 value from the cache is emitted first (with a non null [ApolloResponse.exception] if it's a cache miss),
* and then, if it's a cache miss, 1 or multiple values from the network are emitted (with a non null [ApolloResponse.exception] if there
* was a network error).
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*
* This is the default behaviour.
*/
Expand All @@ -57,9 +56,8 @@ enum class FetchPolicy {
/**
* Try the network, if that failed, try the cache.
*
* 1 or multiple values from the network are emitted (with a non null [ApolloResponse.exception] if there was a network error),
* and then, if there was a network error, 1 value from the cache is emitted (with a non null [ApolloResponse.exception] if it's a cache
* miss).
* This [FetchPolicy] emits one or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*/
NetworkFirst,

Expand All @@ -73,8 +71,8 @@ enum class FetchPolicy {
/**
* Try the cache, then also try the network.
*
* 1 value from the cache is emitted first (with a non null [ApolloResponse.exception] if it's a cache miss),
* and then, 1 or multiple values from the network are emitted (with a non null [ApolloResponse.exception] if there was a network error).
* This [FetchPolicy] emits two or more [ApolloResponse]s.
* Cache misses and network errors have [ApolloResponse.exception] set to a non-null [ApolloException]
*/
CacheAndNetwork,
}
Expand Down

0 comments on commit 007a593

Please sign in to comment.