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

composables/clear-error

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

clearError usage context

The clearError composable can be used within pages, components, and plugins.

clearError composable signature

The clearError composable clears all handled errors. It takes an optional parameters object with a redirect property: clearError(options?: { redirect?: string }). The redirect property is an optional string specifying a path to redirect to after clearing the error.

clearError without redirect example

Call clearError() with no arguments to clear all errors without redirecting the user.

clearError with redirect example

Call clearError({ redirect: '/homepage' }) to clear all errors and redirect the user to the specified path.

clearError behavior and hooks

The clearError composable resets the error state that was set using useError(). It calls the app:error:cleared hook with the provided options.

Give your agent this brain