Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change vnode-lifecycle-events prefix back to vnode- #16

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/breaking-changes/vnode-lifecycle-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ badges:

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.

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

## 2.x Syntax

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

## 3.x Syntax

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

```html
<template>
<child-component @vue:updated="onUpdated">
<child-component @vnode-updated="onUpdated">
</template>
```

Expand Down