mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
3ec108493d
* docs: simplify docs to only markdown * Create nuxt-config.md * chore: update * chore: add readme
16 lines
459 B
Markdown
16 lines
459 B
Markdown
# `clearNuxtData`
|
|
|
|
Delete cached data, error status and pending promises of `useAsyncData` and `useFetch`.
|
|
|
|
This method is useful if you want to invalidate the data fetching for another page.
|
|
|
|
## Type
|
|
|
|
```ts
|
|
clearNuxtData (keys?: string | string[] | ((key: string) => boolean)): void
|
|
```
|
|
|
|
## Parameters
|
|
|
|
* `keys`: On or an array of keys that are used in `useAsyncData` to delete their cached data. If no keys are provided, **every data** will be invalidated.
|