new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Nuxt · API · all subjects

utils/clear-nuxt-data

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

clearNuxtData function signature

clearNuxtData is a function with the signature: export function clearNuxtData (keys?: string | string[] | ((key: string) => boolean)): void. It accepts an optional keys parameter that can be a single string key, an array of string keys, or a function that takes a key string and returns a boolean. It returns void.

clearNuxtData purpose

clearNuxtData deletes cached data, error status and pending promises of useAsyncData and useFetch. It is useful to invalidate the data fetching for another page.

clearNuxtData keys parameter

The keys parameter is optional. It can be 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.

Give your agent this brain