Skip to content

Commit

Permalink
chore(compat): change 'vnode-' to 'vue:' in event hooks warning (vuej…
Browse files Browse the repository at this point in the history
  • Loading branch information
skirtles-code authored and chrislone committed Feb 4, 2023
1 parent 0fcbcd4 commit bc0fee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/compat/compatConfig.ts
Expand Up @@ -207,8 +207,8 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
[DeprecationTypes.INSTANCE_EVENT_HOOKS]: {
message: event =>
`"${event}" lifecycle events are no longer supported. From templates, ` +
`use the "vnode" prefix instead of "hook:". For example, @${event} ` +
`should be changed to @vnode-${event.slice(5)}. ` +
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
`should be changed to @vue:${event.slice(5)}. ` +
`From JavaScript, use Composition API to dynamically register lifecycle ` +
`hooks.`,
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
Expand Down

0 comments on commit bc0fee0

Please sign in to comment.