Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (9 loc) · 459 Bytes

clear-nuxt-data.md

File metadata and controls

15 lines (9 loc) · 459 Bytes

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

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.