mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

ReactiveQuery.on not listning on DDP changed events #76

Open remo408 opened 9 years ago

remo408 commented 9 years ago

Hi I have the following code var subs = Q.all([ IncidentSub.ready ]); subs.then(function(result) { console.log("then", result);

                                                          var incidents = Incidents.reactiveQuery({
                                                              assignedTo : userId,
                                                              ticType : "incident"
                                                          });

                                                          incidents.on("change", function() {
                                                              console.log("On change ");

                                                          });

Let say when i add a collection say {ticType:"incident",assignedTo:"Test"} The on Change event gets triggered and i see "On change" in the console

but when i update {ticType:"incident",assignedTo:"Test2"} i don't see the on Change event getting triggered. in an idle scenario since the results of the reactiveQuery is updated it should get triggered right?