How to use activated and deactivated keep alive events in a vue composition api?
I can't find any references in the docs
How to use activated and deactivated keep alive events in a vue composition api?
I can't find any references in the docs
for the vue composition api - you can still access the activated/deactivated lifecycle methods in vue, including within vue-next.
I believe the library vue-composition-api supports the activated/deactivated methods but isn't added to the docs.
import {onActivated, onDeactivated} from "vue"
export default {
setup() {
onActivated(() => {
// ...
})
onDeactivated(() => {
// ...
})
}
}