javascript - Meteor - Simple Search Issues -
so i'm trying live search of client-side info in meteor. i have template.usertable.events({ "change #namesearchbar":function(event){ //console.log(event); searchtext = event.target.value; filteredusers = meteor.users.find({"profile.name":{$regex: (".*"+searchtext+".*") } }); console.log(filteredusers.fetch()); } }); in js, and template.usertable.helpers({ usersonline: function() { return filteredusers; } }); as well. can see filteredusers updated in console logs, don't nice live-update of html lists usersonline - instead of them, usersonline initialised to, calling filteredusers = meteor.users.find(). how can desired live-update? your filteredusers variable not reactive, when changes, nothing telling usersonline helper re-run. think can in 1 of 2 ways: use reactivevar . i'm admittedly not experienced them, think assign reactivevar part