Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harryadel/reactive-dict
Meteor Standalone Reactive Dict Package
https://github.com/harryadel/reactive-dict
Last synced: 26 days ago
JSON representation
Meteor Standalone Reactive Dict Package
- Host: GitHub
- URL: https://github.com/harryadel/reactive-dict
- Owner: harryadel
- Created: 2021-03-30T14:42:13.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T17:32:54.000Z (over 3 years ago)
- Last Synced: 2024-10-02T08:51:05.989Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 453 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reactive-dict
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/reactive-dict) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/reactive-dict)
***This package provide `ReactiveDict`, a general-purpose reactive
datatype for use with
[tracker](https://atmospherejs.com/meteor/tracker). It provides all of
the functionality of the `Session` object documented in the [main
Meteor docs](https://docs.meteor.com/#session), such as reactive
`get`, `set`, and `equals` functions.If you provide a name to its constructor, its contents will be saved across Hot
Code Push client code updates.Example usage:
```js
var dict = new ReactiveDict('myDict');
dict.set("weather", "cloudy");
Tracker.autorun(function () { console.log("now " + dict.get("weather")); });
// now cloudy
dict.set("weather", "sunny");
// now sunny
```For more information, see the [Tracker project
page](http://docs.meteor.com/api/tracker.html).## Future work
Unify with [reactive-var](https://atmospherejs.com/meteor/reactive-var).