mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
693 B
693 B
title | description | links | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
clearNuxtData | Delete cached data, error status and pending promises of useAsyncData and useFetch. |
|
::note This method is useful if you want to invalidate the data fetching for another page. ::
Type
clearNuxtData (keys?: string | string[] | ((key: string) => boolean)): void
Parameters
keys
: One or an array of keys that are used inuseAsyncData
to delete their cached data. If no keys are provided, all data will be invalidated.