minimongo-cache
minimongo-cache copied to clipboard
Plugging into the reactivity
Meteor's tracker allows for adding custom dependable computations into the observable model via Tracker.Dependable. What would be the best way to accomplish the same here?
Context: I'd like to use minimongo-cache alongside Flux-style stores and have them both cause observeData from React mixin to rerun.
Thanks for awesome work @petehunt!
The MemoryDb instance is just an event emitter and emits change events. You can see the format of those events here: https://github.com/petehunt/minimongo-cache/blob/master/src/WriteTransaction.coffee#L58