Recomputable computed properties in Vue
npm install vue-recomputed
This is a silly example to showcase the API. Never do this kind of things:
export default {
recomputed: {
currentTime() {
// you have access to the component as with computed properties
return Date.now()
},
},
methods: {
updateTime() {
this.$recompute('currentTime')
},
},
}