Back to Nuxt

clearNuxtData

docs/4.api/3.utils/clear-nuxt-data.md

4.4.4431 B
Original Source

::note This method is useful if you want to invalidate the data fetching for another page. ::

Type

ts
export function clearNuxtData (keys?: string | string[] | ((key: string) => boolean)): void

Parameters

  • keys: One or an array of keys that are used in useAsyncData to delete their cached data. If no keys are provided, all data will be invalidated.