Skip to content

Commit fccfb18

Browse files
chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063)
1 parent dc9f994 commit fccfb18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/compat/compatConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
207207
[DeprecationTypes.INSTANCE_EVENT_HOOKS]: {
208208
message: event =>
209209
`"${event}" lifecycle events are no longer supported. From templates, ` +
210-
`use the "vnode" prefix instead of "hook:". For example, @${event} ` +
211-
`should be changed to @vnode-${event.slice(5)}. ` +
210+
`use the "vue:" prefix instead of "hook:". For example, @${event} ` +
211+
`should be changed to @vue:${event.slice(5)}. ` +
212212
`From JavaScript, use Composition API to dynamically register lifecycle ` +
213213
`hooks.`,
214214
link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`

0 commit comments

Comments
 (0)