chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063)

This commit is contained in:
skirtle 2022-11-09 13:15:41 +00:00 committed by GitHub
parent dc9f99426d
commit fccfb1821f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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`