Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/posva/vue-recomputed
Recomputable computed properties
https://github.com/posva/vue-recomputed
computed plugin prop vue
Last synced: 21 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T06:23:34.000Z (over 1 year ago)
- Last Synced: 2024-10-17T00:18:27.504Z (about 1 month ago)
- Topics: computed, plugin, prop, vue
- Language: JavaScript
- Size: 1.25 MB
- Stars: 23
- Watchers: 3
- 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 [![Build Status](https://img.shields.io/circleci/project/posva/vue-recomputed/master.svg)](https://circleci.com/gh/posva/vue-recomputed) [![npm package](https://img.shields.io/npm/v/vue-recomputed.svg)](https://www.npmjs.com/package/vue-recomputed) [![coverage](https://img.shields.io/codecov/c/github/posva/vue-recomputed.svg)](https://codecov.io/github/posva/vue-recomputed) [![thanks](https://img.shields.io/badge/thanks-%E2%99%A5-ff69b4.svg)](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)