mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
reactive-dict
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, except that its contents are not
saved across Hot Code Push client code updates.
Example usage:
> var dict = new ReactiveDict;
> 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.
Future work
Unify with reactive-var.