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
All fetch options can be given a `computed` or `ref` value. These will be watched and new requests made automatically with any new values if they are updated.
@@ -190,6 +192,7 @@ This only caches data when `experimental.payloadExtraction` in `nuxt.config` is
190
192
| Name | Type | Description |
191
193
| --- | --- |--- |
192
194
|`data`|`Ref<DataT \| null>`| The result of the asynchronous fetch. |
195
+
|`pending`|`Ref<boolean>`|[For specific explanations](https://nuxt.com/docs/getting-started/upgrade#alignment-of-pending-value-in-useasyncdata-and-usefetch)|
193
196
|`refresh`|`(opts?: AsyncDataExecuteOptions) => Promise<void>`| Function to manually refresh the data. By default, Nuxt waits until a `refresh` is finished before it can be executed again. |
194
197
|`execute`|`(opts?: AsyncDataExecuteOptions) => Promise<void>`| Alias for `refresh`. |
195
198
|`error`|`Ref<ErrorT \| null>`| Error object if the data fetching failed. |
0 commit comments