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

hooks/app

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

page:loading:end hook

The `page:loading:end` hook is called after `page:finish`. It takes no arguments and runs in Client environment only.

app:created hook

The `app:created` hook is called when the initial `vueApp` instance is created. It receives `vueApp` as an argument and runs in Server & Client environments.

app:error hook

The `app:error` hook is called when a fatal error occurs. It receives `err` as an argument and runs in Server & Client environments.

app:error:cleared hook

The `app:error:cleared` hook is called when a fatal error is cleared. It receives `{ redirect? }` as an argument and runs in Server & Client environments.

vue:setup hook

The `vue:setup` hook is called when the setup of Nuxt root is initialized. It takes no arguments and this callback must be synchronous. It runs in Server & Client environments.

vue:error hook

The `vue:error` hook is called when a Vue error propagates to the root component. It receives `err, target, info` as arguments and runs in Server & Client environments. See Vue's onerrorcaptured lifecycle hook for details.

app:rendered hook

The `app:rendered` hook is called when SSR rendering is done. It receives `renderContext` as an argument and runs in Server environment only.

app:redirected hook

The `app:redirected` hook is called before SSR redirection. It takes no arguments and runs in Server environment only.

app:beforeMount hook

The `app:beforeMount` hook is called before mounting the app and runs only on the client side. It receives `vueApp` as an argument.

app:mounted hook

The `app:mounted` hook is called when the Vue app is initialized and mounted in the browser. It receives `vueApp` as an argument and runs in Client environment only.

app:suspense:resolve hook

The `app:suspense:resolve` hook is called on Suspense resolved event. It receives `appComponent` as an argument and runs in Client environment only.

app:manifest:update hook

The `app:manifest:update` hook is called when a newer version of the app is detected. It receives `{ id, timestamp }` as an argument and runs in Client environment only.

app:data:refresh hook

The `app:data:refresh` hook is called when `refreshNuxtData` is called. It receives `keys?` as an optional argument and runs in Client environment only.

link:prefetch hook

The `link:prefetch` hook is called when a `<NuxtLink>` is observed to be prefetched. It receives `to` as an argument and runs in Client environment only.

page:start hook

The `page:start` hook is called on Suspense inside of `NuxtPage` pending event. It receives `pageComponent?` as an optional argument and runs in Client environment only.

page:finish hook

The `page:finish` hook is called on Suspense inside of `NuxtPage` resolved event. It receives `pageComponent?` as an optional argument and runs in Client environment only.

page:loading:start hook

The `page:loading:start` hook is called when a route navigation begins (before resolution) or when the page key changes. It takes no arguments and runs in Client environment only. It may fire without the page component's `setup()` re-running if the page is reused (e.g., with a static `key` in `definePageMeta`).

page:transition:finish hook

The `page:transition:finish` hook is called after page transition onAfterLeave event. It receives `pageComponent?` as an optional argument and runs in Client environment only.

dev:ssr-logs hook

The `dev:ssr-logs` hook is called with an array of server-side logs that have been passed to the client (if `features.devLogs` is enabled). It receives `logs` as an argument and runs in Client environment only.

page:view-transition:start hook

The `page:view-transition:start` hook is called after `document.startViewTransition` is called when experimental viewTransition support is enabled. It receives `transition` as an argument, which is a `ViewTransition` object with a `types` property (`ViewTransitionTypeSet`) that can be read or modified. It runs in Client environment only.

Give your agent this brain