i have autorun function in rendered callback:
template.drawflow.rendered = -> outerdata = this.autorun -> # work here using reactive collections s = session.get("redrawlines") connectrecursive outerdata.data.tasks, outerdata.data.starttask what want on data change in this.autorun reexecute function. right doesn't it, wondering why.
update updated code above, , also, on events do:
session.set('redrawlines', moment()) which should invalidate computation inside autorun function. also, "outerdata" variable should reactive, it's "data" section of ironrouter.
this.autorun reactive computation, need reactive source within autorun function in order view rendered upon update of data.
reactive sources in meteor include session variables, cursors, meteor.user, , more. here's read should out:
https://www.discovermeteor.com/blog/reactivity-basics-meteors-magic-demystified/
hope helps.
Comments
Post a Comment