v1.3.1Published 5 months ago


Source code of released version | Source code of development version

This package provide ReactiveDict, a general-purpose reactive datatype for use with tracker. It provides all of the functionality of the Session object documented in the main Meteor docs, 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:

1var dict = new ReactiveDict('myDict');
2dict.set("weather", "cloudy");
3Tracker.autorun(function () { console.log("now " + dict.get("weather")); });
4// now cloudy
5dict.set("weather", "sunny");
6// now sunny

For more information, see the Tracker project page.

Future work

Unify with reactive-var.