File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ interface VueSentry extends ViewModel {
23
23
const HOOKS : { [ key in Operation ] : Hook [ ] } = {
24
24
activate : [ 'activated' , 'deactivated' ] ,
25
25
create : [ 'beforeCreate' , 'created' ] ,
26
+ // Vue 3
27
+ unmount : [ 'beforeUnmount' , 'unmounted' ] ,
28
+ // Vue 2
26
29
destroy : [ 'beforeDestroy' , 'destroyed' ] ,
27
30
mount : [ 'beforeMount' , 'mounted' ] ,
28
31
update : [ 'beforeUpdate' , 'updated' ] ,
Original file line number Diff line number Diff line change @@ -76,12 +76,14 @@ export type Hook =
76
76
| 'activated'
77
77
| 'beforeCreate'
78
78
| 'beforeDestroy'
79
+ | 'beforeUnmount'
79
80
| 'beforeMount'
80
81
| 'beforeUpdate'
81
82
| 'created'
82
83
| 'deactivated'
83
84
| 'destroyed'
85
+ | 'unmounted'
84
86
| 'mounted'
85
87
| 'updated' ;
86
88
87
- export type Operation = 'activate' | 'create' | 'destroy' | 'mount' | 'update' ;
89
+ export type Operation = 'activate' | 'create' | 'destroy' | 'mount' | 'update' | 'unmount' ;
You can’t perform that action at this time.
0 commit comments