Skip to content

Commit c961456

Browse files
authored
Fix link to fetch policies (#291)
1 parent 2227101 commit c961456

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ This is exactly what you would pass to the normal js `fetch`, with a little extr
781781
| Option | Description | Default |
782782
| --------------------- | --------------------------------------------------------------------------|------------- |
783783
| `cacheLife` | After a successful cache update, that cache data will become stale after this duration | `0` |
784-
| `cachePolicy` | These will be the same ones as Apollo's [fetch policies](https://www.apollographql.com/docs/react/api/react-apollo/#optionsfetchpolicy). Possible values are `cache-and-network`, `network-only`, `cache-only`, `no-cache`, `cache-first`. Currently only supports **`cache-first`** or **`no-cache`** | `cache-first` |
784+
| `cachePolicy` | These will be the same ones as Apollo's [fetch policies](https://www.apollographql.com/docs/react/api/react/hoc/#optionsfetchpolicy). Possible values are `cache-and-network`, `network-only`, `cache-only`, `no-cache`, `cache-first`. Currently only supports **`cache-first`** or **`no-cache`** | `cache-first` |
785785
| `data` | Allows you to set a default value for `data` | `undefined` |
786786
| `interceptors.request` | Allows you to do something before an http request is sent out. Useful for authentication if you need to refresh tokens a lot. | `undefined` |
787787
| `interceptors.response` | Allows you to do something after an http response is recieved. Useful for something like camelCasing the keys of the response. | `undefined` |

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ This is exactly what you would pass to the normal js `fetch`, with a little extr
734734
| Option | Description | Default |
735735
| --------------------- | --------------------------------------------------------------------------|------------- |
736736
| `cacheLife` | After a successful cache update, that cache data will become stale after this duration | `0` |
737-
| `cachePolicy` | These will be the same ones as Apollo's [fetch policies](https://www.apollographql.com/docs/react/api/react-apollo/#optionsfetchpolicy). Possible values are `cache-and-network`, `network-only`, `cache-only`, `no-cache`, `cache-first`. Currently only supports **`cache-first`** or **`no-cache`** | `cache-first` |
737+
| `cachePolicy` | These will be the same ones as Apollo's [fetch policies](https://www.apollographql.com/docs/react/api/react/hoc/#optionsfetchpolicy). Possible values are `cache-and-network`, `network-only`, `cache-only`, `no-cache`, `cache-first`. Currently only supports **`cache-first`** or **`no-cache`** | `cache-first` |
738738
| `data` | Allows you to set a default value for `data` | `undefined` |
739739
| `interceptors.request` | Allows you to do something before an http request is sent out. Useful for authentication if you need to refresh tokens a lot. | `undefined` |
740740
| `interceptors.response` | Allows you to do something after an http response is recieved. Useful for something like camelCasing the keys of the response. | `undefined` |

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum HTTPMethod {
1111
PUT = 'PUT',
1212
}
1313

14-
// https://www.apollographql.com/docs/react/api/react-apollo/#optionsfetchpolicy
14+
// https://www.apollographql.com/docs/react/api/react/hoc/#optionsfetchpolicy
1515
export enum CachePolicies {
1616
/**
1717
* This is the default value where we always try reading data

0 commit comments

Comments
 (0)