matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
435 stars 68 forks source link

Meteor date range filter not reactive #496

Closed ramzauchenna closed 8 years ago

ramzauchenna commented 8 years ago

I have a simple publication line this

Core.publish("DashOrderVolumes", function(startDate, endDate){
  console.log(arguments)
  let fields = {
    'issuedAt': 1
  };
  return Orders.find({issuedAt: {$gte: startDate, $lte: endDate}}, {
    fields: fields
  });
});

if i have just one condition it works i.e {issuedAt: {$gte: startDate}} alone and the data comes to the client but when i add the second range nothin happens unless i make a template change event. I am wondering if this is a usual behaviour

matteodem commented 8 years ago

I don't see anything that's related to EasySearch in this issue.

ramzauchenna commented 8 years ago

Dont know what you mean by easy search but what i am trying to say is that the data is not reactive. meaning the dom is not updated

ramzauchenna commented 8 years ago

sorry. was on the wrong page