Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugging into the reactivity #4

Open
mhagmajer opened this issue Jan 18, 2016 · 1 comment
Open

Plugging into the reactivity #4

mhagmajer opened this issue Jan 18, 2016 · 1 comment

Comments

@mhagmajer
Copy link

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!

@petehunt
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants