vue-recomputed

Recomputable computed properties in Vue
1,815 23
Install
npm install vue-recomputed
Latest Version:0.0.1
Vue:2
License:MIT
Last Updated:Jul 11, 2023
Links: GitHub  ·  npm
Maintainer: posva

VueRecomputed Build Status npm package coverage thanks

Recomputable computed properties in Vue

⚠️ You probably don't need this, please, first check this issue and this comment and this other one as well

Installation

npm install vue-recomputed

Usage

This is a silly example to showcase the API. Never do this kind of thigs:

export default {
  recomputed: {
    currentTime() {
      // you have access to the component as with computed properties
      return Date.now()
    },
  },

  methods: {
    updateTime() {
      this.$recompute('currentTime')
    },
  },
}

License

MIT

Version History

Version Released Vue License
0.0.1 ^2.5.17 MIT
0.0.0 ^2.5.17 MIT