Force entire template to re-render on data change


#1

Is there anyway to force an entire template to render. I’m playing around with animations and I need to be able to get a template to re-render.

For example say I’m rendering this template:

<template name="foo">
    <div class="foo">
          {{foo._id}}
    </div>
</template>

Template.foo.helpers
    foo: -> Foos.find({some_params})

When foo changes I’d like the entire template to be re-rendered in this instance, not just the id. This is so that I can then animate the old foo out and the new foo in (I already have animations working).


#2

I found a workaround here http://stackoverflow.com/questions/23355878/meteor-forcing-rerendering-whole-template-after-collection-update-with-blaze using the {{#unless noRender}} method


#3

If anyone is still looking for an answer here, there is a simpler answer I just posted in this forum entry.