--
You received this message because you are subscribed to the Google Groups "meteor-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-core...@googlegroups.com.
To post to this group, send email to meteo...@googlegroups.com.
Visit this group at http://groups.google.com/group/meteor-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
So how does the new dependency API address:
1. batching live updates until the client data is at a known stable state?
2. the case of a client updating a collection which is subsequently invalidated by the server? Sure is it possible today to use isSimulated, but AFAIK, that does not really say that everything is in sync. Instead the user sees the UI update, thinks it is done, then has his action undone as the server resets the update. Could the dependency API be set to only trigger once the server has completed the operation rather than just the client operation?
Perhaps we can use a better design pattern to solve the above on our own, but we haven't found one when so much of the collection invalidation logic is in the lower levels of the Meteor APIs. (We already define our own reactive variables to handle client side state changes within our app rather than munging it all into Session variables).
var weatherDeps = new Deps.Variable;
Deps.depend(weatherDeps);
weatherDeps.changed();
var weatherDeps = new Deps.Dependency;
Variables don't store data, ...
Variables don't store data, they just track the set of computations to invalidate if they change. Typically, a data value will be accompanied by a Variable that affords dependency tracking, as in this example:
Dependencies don't store data themselves, they just track the set of computations to invalidate if their associated data changes. Typically, a data value will be accompanied by a Dependency that affords dependency tracking, as in this example:
- Purely opinion: The naming feels a little awkward. Kind of like Deps an abbreviation for Dependencies. But if that's the case, why not call it Dependencies? Also, to the newbie, it could probably be mistake for the more common code/library dependencies. I'd love to be able to offer a suggestion of something that's better, but I don't really have one. Reactor? Reactivity?
};