mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 18:34:50 +00:00
2abf4a5bc1
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Damian Głowala <48835293+DamianGlowala@users.noreply.github.com> Co-authored-by: Pooya Parsa <pooya@pi0.io>
2.2 KiB
2.2 KiB
Lifecycle Hooks
:ReadMore{link="/guide/going-further/hooks"}
App Hooks (runtime)
Check the app source code for all available hooks.
Hook | Arguments | Environment | Description |
---|---|---|---|
app:created |
vueApp |
Server & Client | Called when initial vueApp instance is created. |
app:error |
err |
Server & Client | Called when a fatal error occurs. |
app:error:cleared |
{ redirect? } |
Server & Client | Called when a fatal error occurs. |
app:data:refresh |
keys? |
Server & Client | (internal) |
meta:register |
metaRenderers |
Server & Client | (internal) |
vue:setup |
- | Server & Client | (internal) |
vue:error |
err, target, info |
Server & Client | Called when a vue error propages to the root component. Learn More. |
app:rendered |
renderContext |
Server | Called when SSR rendering is done. |
app:redirected |
- | Server | Called before SSR redirection. |
app:beforeMount |
vueApp |
Client | Called before mounting the app, called only on client side. |
app:mounted |
vueApp |
Client | Called when Vue app is initialized and mounted in browser. |
app:suspense:resolve |
appComponent |
Client | On Suspense resolved event |
page:start |
pageComponent? |
Client | Called on Suspense pending event. |
page:finish |
pageComponent? |
Client | Called on Suspense resolved event. |
Nuxt Hooks (build time)
Check the schema source code for all available hooks.
:NeedContribution