leinaD_natipaC
leinaD_natipaC

Reputation: 4437

How can I prevent a Template from re-rendering every element in a {{#each}} block?

Suppose I have a template that fetches an array from the cloud... or something. Then I render each element in that array using another template, like so:

<template name='A'>
  {{> B data=cloudData}} <!-- [{foo:'4142'}, {foo:'af3d'}, ...] -->
</template>

<template name='B'>
  {{#each data}}
    {{> C}}
  {{/each}}
</template>

I expect cloudData to change often. Is Meteor/Blaze smart enough to only re-render the parts of 'data' that change? If not, how can I force Meteor/Blaze to be smart about it in an idiomatic way?

Upvotes: 0

Views: 99

Answers (0)

Related Questions