Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
refactor(nuxt): remove unused meta:register hook (#7130)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 1, 2022
1 parent cafc955 commit 6fbbf8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/content/3.api/4.advanced/1.hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Hook | Arguments | Environment | Description
`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](https://vuejs.org/api/composition-api-lifecycle.html#onerrorcaptured).
`app:rendered` | `renderContext` | Server | Called when SSR rendering is done.
Expand Down
5 changes: 2 additions & 3 deletions packages/nuxt/src/app/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export interface RuntimeNuxtHooks {
'app:data:refresh': (keys?: string[]) => HookResult
'page:start': (Component?: VNode) => HookResult
'page:finish': (Component?: VNode) => HookResult
'meta:register': (metaRenderers: Array<(nuxt: NuxtApp) => NuxtMeta | Promise<NuxtMeta>>) => HookResult
'vue:setup': () => void
'vue:error': (...args: Parameters<Parameters<typeof onErrorCaptured>[0]>) => HookResult
}
Expand Down Expand Up @@ -70,7 +69,7 @@ interface _NuxtApp {
data: Ref<any>
pending: Ref<boolean>
error: Ref<any>
}>,
}>,

ssrContext?: NuxtSSRContext
payload: {
Expand All @@ -92,7 +91,7 @@ interface _NuxtApp {
provide: (name: string, value: any) => void
}

export interface NuxtApp extends _NuxtApp { }
export interface NuxtApp extends _NuxtApp {}

export const NuxtPluginIndicator = '__nuxt_plugin'
export interface Plugin<Injections extends Record<string, any> = Record<string, any>> {
Expand Down

0 comments on commit 6fbbf8c

Please sign in to comment.