https://github.com/posva/vue-recomputed
Recomputable computed properties
https://github.com/posva/vue-recomputed
computed plugin prop vue
Last synced: 8 months ago
JSON representation
Recomputable computed properties
- Host: GitHub
- URL: https://github.com/posva/vue-recomputed
- Owner: posva
- License: mit
- Created: 2018-08-08T21:58:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T06:23:34.000Z (almost 3 years ago)
- Last Synced: 2025-07-27T19:57:09.990Z (11 months ago)
- Topics: computed, plugin, prop, vue
- Language: JavaScript
- Size: 1.25 MB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# VueRecomputed [](https://circleci.com/gh/posva/vue-recomputed) [](https://www.npmjs.com/package/vue-recomputed) [](https://codecov.io/github/posva/vue-recomputed) [](https://github.com/posva/thanks)
> Recomputable computed properties in Vue
⚠️ You probably don't need this, please, first check [this issue](https://github.com/vuejs/vue/issues/214) and [this comment](https://github.com/vuejs/vue/issues/214#issuecomment-355177115) and [this other one](https://github.com/vuejs/vue/issues/214#issuecomment-411482670) as well
## Installation
```sh
npm install vue-recomputed
```
## Usage
This is a silly example to showcase the API. **Never do this kind of things**:
```js
export default {
recomputed: {
currentTime() {
// you have access to the component as with computed properties
return Date.now()
},
},
methods: {
updateTime() {
this.$recompute('currentTime')
},
},
}
```
## License
[MIT](http://opensource.org/licenses/MIT)