Skip to content

Commit 50bc869

Browse files
authored
Change vnode-lifecycle-events prefix back to vnode-
1 parent e99a954 commit 50bc869

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/breaking-changes/vnode-lifecycle-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ badges:
99

1010
In Vue 2, it was possible to use events to listen for key stages in a component's lifecycle. These events had names that started with the prefix `hook:`, followed by the name of the corresponding lifecycle hook.
1111

12-
In Vue 3, this prefix has been changed to `vue:`. In addition, these events are now available for HTML elements as well as components.
12+
In Vue 3, this prefix has been changed to `vnode-`. In addition, these events are now available for HTML elements as well as components.
1313

1414
## 2.x Syntax
1515

@@ -23,11 +23,11 @@ In Vue 2, the event name is the same as the equivalent lifecycle hook, prefixed
2323

2424
## 3.x Syntax
2525

26-
In Vue 3, the event name is prefixed with `vue:`:
26+
In Vue 3, the event name is prefixed with `vnode-`:
2727

2828
```html
2929
<template>
30-
<child-component @vue:updated="onUpdated">
30+
<child-component @vnode-updated="onUpdated">
3131
</template>
3232
```
3333

0 commit comments

Comments
 (0)