minimongo-cache icon indicating copy to clipboard operation
minimongo-cache copied to clipboard

Plugging into the reactivity

Open mhagmajer opened this issue 9 years ago • 1 comments

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!

mhagmajer avatar Jan 18 '16 14:01 mhagmajer

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

petehunt avatar Jan 25 '16 18:01 petehunt