https://github.com/maxnowack/meteor-reactive-object
makes an object reactive using es6 proxies
https://github.com/maxnowack/meteor-reactive-object
meteor reactivity tracker
Last synced: 2 months ago
JSON representation
makes an object reactive using es6 proxies
- Host: GitHub
- URL: https://github.com/maxnowack/meteor-reactive-object
- Owner: maxnowack
- License: mit
- Created: 2017-04-10T12:40:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T14:18:36.000Z (about 8 years ago)
- Last Synced: 2024-04-24T04:11:55.496Z (about 1 year ago)
- Topics: meteor, reactivity, tracker
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# meteor-reactive-object [](https://travis-ci.org/maxnowack/meteor-reactive-object)
Makes an object reactive using es6 proxies### Installation
````bash
$ npm install --save meteor-reactive-object
````### Usage
````es6
import { Tracker } from 'meteor/tracker'
import reactiveObject, { isSupported } from 'meteor-reactive-object'if (!isSupported()) throw new Error('ES6 proxies are not supported by your environment!')
const obj = reactiveObject() // reactiveObject(intitialValue: object = {}, options: object = { recursive: true, compare: (a, b) => a === b })Tracker.autorun(() => {
console.log(obj.foo)
})obj.foo = 'bar'
````## License
Licensed under MIT license. Copyright (c) 2017 Max Nowack## Contributions
Contributions are welcome. Please open issues and/or file Pull Requests.## Maintainers
- Max Nowack ([maxnowack](https://github.com/maxnowack))