This repository was archived by the owner on Apr 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1k
docs(api): add missing hooks and environment column #6329
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6cd6725
docs(api): Add environment column on hooks
atinux f7c860e
Update docs/content/3.api/4.advanced/1.hooks.md
pi0 f225018
Update docs/content/3.api/4.advanced/1.hooks.md
pi0 f9c5bbb
Update docs/content/3.api/4.advanced/1.hooks.md
pi0 41b4f71
update table
pi0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Lifecycle Hooks | ||
|
||
::ReadMore{link="/guide/going-further/hooks"} | ||
:: | ||
:ReadMore{link="/guide/going-further/hooks"} | ||
|
||
# App Hooks (runtime) | ||
|
||
Check the [app source code](https://github.com/nuxt/framework/blob/main/packages/nuxt/src/app/nuxt.ts#L18) for all available hooks. | ||
|
||
Hook | Arguments | Description | ||
-----------------------|-------------------|--------------- | ||
`app:created` | `vueApp` | When initial `vueApp` instance is created | ||
`app:beforeMount` | `vueApp` | Same as `app:created` | ||
`app:mounted` | `vueApp` | When Vue app is initialized and mounted in browser | ||
`app:rendered` | - | When SSR rendering is done | ||
`app:suspense:resolve` | `appComponent` | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) resolved event | ||
`page:start` | `pageComponent` | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) pending event | ||
`page:finish` | `pageComponent` | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) resolved event | ||
`meta:register` | `metaRenderers` | (internal) | ||
`vue:setup` | - | (internal) | ||
Hook | Arguments | Environment | Description | | ||
-----------------------|-------------------|--------------|-------------| | ||
`app:created` | `vueApp` | Server & Client | When initial `vueApp` instance is created | | ||
`app:beforeMount` | `vueApp` | Client | Before mounting the app, called only on client-side. | | ||
`app:mounted` | `vueApp` | Client | When Vue app is initialized and mounted in browser | | ||
pi0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`app:rendered` | - | Server | When SSR rendering is done | | ||
pi0 marked this conversation as resolved.
Show resolved
Hide resolved
pi0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`app:suspense:resolve` | `appComponent` | Server & Client | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) resolved event | | ||
`page:start` | `pageComponent` | Server & Client | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) pending event | | ||
`page:finish` | `pageComponent` | Server & Client | On [Suspense](https://vuejs.org/guide/built-ins/suspense.html#suspense) resolved event | | ||
pi0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`meta:register` | `metaRenderers` | Server & Client | (internal) | | ||
`vue:setup` | - | Server & Client | (internal) | | ||
|
||
# Nuxt Hooks (build time) | ||
|
||
Check the [schema source code](https://github.com/nuxt/framework/blob/main/packages/schema/src/types/hooks.ts#L55) for all available hooks. | ||
|
||
::NeedContribution | ||
:: | ||
:NeedContribution |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.