mirror of https://github.com/vuejs/core.git
chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063)
This commit is contained in:
parent
dc9f99426d
commit
fccfb1821f
|
@ -207,8 +207,8 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
|
||||||
[DeprecationTypes.INSTANCE_EVENT_HOOKS]: {
|
[DeprecationTypes.INSTANCE_EVENT_HOOKS]: {
|
||||||
message: event =>
|
message: event =>
|
||||||
`"${event}" lifecycle events are no longer supported. From templates, ` +
|
`"${event}" lifecycle events are no longer supported. From templates, ` +
|
||||||
`use the "vnode" prefix instead of "hook:". For example, @${event} ` +
|
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
|
||||||
`should be changed to @vnode-${event.slice(5)}. ` +
|
`should be changed to @vue:${event.slice(5)}. ` +
|
||||||
`From JavaScript, use Composition API to dynamically register lifecycle ` +
|
`From JavaScript, use Composition API to dynamically register lifecycle ` +
|
||||||
`hooks.`,
|
`hooks.`,
|
||||||
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
|
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`
|
||||||
|
|
Loading…
Reference in New Issue