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
| `mapOptionsToKey` | `(options:Options) => transformedOptions` | `false` | A function that maps options to the key that will become part of the cache key. See below for a list of mapOptionsToKey helpers. |
843
-
| `mapKeyToCacheKey` | `(key:String, options:Options) => cacheKey:String` | `false` | A function that maps the key for use as the cacheKey allowing direct control of the cacheKey |
844
-
| `defer` | `Boolean` | `false` | Prevents execution of `useFetchye` on each render in favor of using the returned `run` function. *Defaults to `false`* |
845
-
| `initialData` | `Object` | `false` | Seeds the initial data on first render of `useFetchye` to accomodate server side rendering *Defaults to `undefined`* |
846
-
| `headers` | `Object` or `() =>Object` | `false` | `Object`: as per the ES6 Compatible `fetch` option. `() =>Object`: A function to construct a ES6 Compatible `headers` object prior to any api call |
847
-
| `...restOptions` | `ES6FetchOptions` | `true` | Contains any ES6 Compatible `fetch` option. (See [Fetch Options](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Supplying_request_options)) |
| `mapOptionsToKey` | `(options:Options) => transformedOptions` | `false` | A function that maps options to the key that will become part of the cache key. See below for a list of mapOptionsToKey helpers. |
843
+
| `mapKeyToCacheKey` | `(key:String, options:Options) => cacheKey:String` | `false` | A function that maps the key for use as the cacheKey allowing direct control of the cacheKey |
844
+
| `defer` | `Boolean` | `false` | Prevents execution of `useFetchye` on each render in favor of using the returned `run` function. *Defaults to `false`* |
845
+
| `forceInitialFetch` | `Boolean` | `false` | Allows the consumer to ignore the cached value and instead always fetch from the server for the initial fetch and update the cached value with what returns. *Defaults to `false`* |
846
+
| `initialData` | `Object` | `false` | Seeds the initial data on first render of `useFetchye` to accomodate server side rendering *Defaults to `undefined`* |
847
+
| `headers` | `Object` or `() =>Object` | `false` | `Object`: as per the ES6 Compatible `fetch` option. `() =>Object`: A function to construct a ES6 Compatible `headers` object prior to any api call |
848
+
| `...restOptions` | `ES6FetchOptions` | `true` | Contains any ES6 Compatible `fetch` option. (See [Fetch Options](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Supplying_request_options)) |
0 commit comments