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 {
2323const HOOKS : { [ key in Operation ] : Hook [ ] } = {
2424 activate : [ 'activated' , 'deactivated' ] ,
2525 create : [ 'beforeCreate' , 'created' ] ,
26+ // Vue 3
27+ unmount : [ 'beforeUnmount' , 'unmounted' ] ,
28+ // Vue 2
2629 destroy : [ 'beforeDestroy' , 'destroyed' ] ,
2730 mount : [ 'beforeMount' , 'mounted' ] ,
2831 update : [ 'beforeUpdate' , 'updated' ] ,
Original file line number Diff line number Diff line change @@ -76,12 +76,14 @@ export type Hook =
7676 | 'activated'
7777 | 'beforeCreate'
7878 | 'beforeDestroy'
79+ | 'beforeUnmount'
7980 | 'beforeMount'
8081 | 'beforeUpdate'
8182 | 'created'
8283 | 'deactivated'
8384 | 'destroyed'
85+ | 'unmounted'
8486 | 'mounted'
8587 | 'updated' ;
8688
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