@nuxt/docs-nightly 4.3.0-29481045.3f5a3d8d → 4.3.0-29481175.992d2a5d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,7 +148,7 @@ The `handler` function should be **side-effect free** to ensure predictable beha
|
|
|
148
148
|
- `immediate`: when set to `false`, will prevent the request from firing immediately. (defaults to `true`)
|
|
149
149
|
- `default`: a factory function to set the default value of the `data`, before the async function resolves - useful with the `lazy: true` or `immediate: false` option
|
|
150
150
|
- `transform`: a function that can be used to alter `handler` function result after resolving
|
|
151
|
-
- `getCachedData`: Provide a function which returns cached data.
|
|
151
|
+
- `getCachedData`: Provide a function which returns cached data. An `undefined` return value will trigger a fetch. By default, this is:
|
|
152
152
|
```ts
|
|
153
153
|
const getDefaultCachedData = (key, nuxtApp, ctx) => nuxtApp.isHydrating
|
|
154
154
|
? nuxtApp.payload.data[key]
|