FAQ Database Discussion Community


Detecting if template was re-rendered due to data context change

meteor,meteor-blaze,autorun
Here's a pretty common pattern: Template.myTemplate.rendered = function () { this.autorun(function () { var selector = {}; // should depend on the current data context MyCollection.find(selector).observe({ // ... }); }); } In general, I want the selector value depend on the current data context, which may potentially change, but we...