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 zhangzhonghe committed Apr 12, 2023
1 parent 6e23fea commit 85cf544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/compat/compatConfig.ts
Original file line number Diff line number Diff line change
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 85cf544

Please sign in to comment.