Skip to content

Commit 8a99c7e

Browse files
authored
Merge pull request #28 from reasonml-community/fetch-policy-extract-nocache
Update mutation fetch policy
2 parents 2e904c0 + 4ded67b commit 8a99c7e

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

EXAMPLES/src/Client.re

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ let instance =
4949
~mutate=
5050
DefaultMutateOptions.make(
5151
~awaitRefetchQueries=true,
52-
~fetchPolicy=NetworkOnly,
5352
~errorPolicy=All,
5453
(),
5554
),

src/@apollo/client/core/ApolloClient__Core_WatchQueryOptions.re

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,11 @@ module FetchPolicy__noCacheExtracted = {
5151
type t = string;
5252
};
5353
type t =
54-
| CacheFirst
55-
| CacheOnly
56-
| NetworkOnly
57-
| Standby;
54+
| NoCache;
5855

5956
let toJs =
6057
fun
61-
| CacheFirst => "cache-first"
62-
| CacheOnly => "cache-only"
63-
| NetworkOnly => "network-only"
64-
| Standby => "standby";
58+
| NoCache => "no-cache";
6559
};
6660

6761
module WatchQueryFetchPolicy = {

0 commit comments

Comments
 (0)