How to use the onDeactivated function from vue

Find comprehensive JavaScript vue.onDeactivated code examples handpicked from public code repositorys.

114
115
116
117
118
119
120
121
122
123
vue_1.onActivated(function () {
  if (!mounting) {
    initWrapper()
  }
})
vue_1.onDeactivated(function () {
  var _a
  if (!modelBind) {
    cache = vueEditor.getContent()
  }
fork icon0
star icon0
watch icon1

1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
function registerGuard(record, name, guard) {
    const removeFromList = () => {
        record[name].delete(guard);
    };
    vue.onUnmounted(removeFromList);
    vue.onDeactivated(removeFromList);
    vue.onActivated(() => {
        record[name].add(guard);
    });
    record[name].add(guard);
fork icon0
star icon0
watch icon1

+ 11 other calls in file