Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As I understand it, the behavior in which re-rendering of your templates "bubbles up" and causes re-rendering of their parent templates is not particular to iron-router or the way your code is implemented, but is inherent in Spark. Iron-router's {{yield}} pattern does not alter this behavior, as far as I can tell from its documentation.</p> <p>The good news is that Spark is set to be replaced imminently with a newer, more fine-grained rendering engine, currently codenamed "Spacebars," which should alleviate the concern.</p> <p>Here is a preview of the new rendering system:</p> <p><a href="https://github.com/meteor/meteor/wiki/New-Template-Engine-Preview" rel="nofollow">https://github.com/meteor/meteor/wiki/New-Template-Engine-Preview</a></p> <p>This talk from a week ago is also excellent at describing the benefits coming through the new rendering engine (while fairly long, an overview is given in the first 5 minutes):</p> <p><a href="https://www.youtube.com/watch?v=aPf0LMQHIqk" rel="nofollow">https://www.youtube.com/watch?v=aPf0LMQHIqk</a></p> <p>As for your options today, you can:</p> <p>a) Use the {{#constant}} and {{#isolate}} parameters to try to limit re-rendering.</p> <p>b) Work from a development branch as described in the link above:</p> <blockquote> <p>You can play with the current work-in-progress version of the code using the template-engine-preview-4 release tag (run your app with meteor --release template-engine-preview-4), or by checking out the shark branch (it's an internal codename).</p> </blockquote> <p>c) Best of all if the timeframe of your project allows is to allow the re-rendering to continue until Meteor 1.0 hits and "Spacebars" resides on the main branch - it sounds like this is 1-3 months away.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload