Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8771905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:54:28+00:00 2026-06-13T17:54:28+00:00

How do I use {{#isolate}} ? If I make a page with a bunch

  • 0

How do I use {{#isolate}} ?

If I make a page with a bunch of templates, like:

{{> page1}}

<template name="template1">reactive source1</template>
<template name="template2">reactive source2</template>
<template name="template3">reactive source3</template>
<template name="template4">reactive source4</template>
<template name="template5">reactive source5</template>

<template name="page1">
    {{> template1}}
    {{> template2}}
    {{> template3}}
    {{> template4}}
    {{> template5}}
</template>

If each single template has content that updates, will it rerender the whole page each time? How do i stop that from happening?

Should I use isolate in this situation?

If I bind any helper to these templates, like:

Template.template1.rendered = ->
    console.log 'rendered at: ' + new Date().getTime()

it will render at least 5 times because I have 5 reactive sources. If each of them includes a
reactive list, it will be rendered docs.length times.

I can’t control single template instances.

Sorry about my english.

Here is an issue related to this that I’ve posted on GitHub before: https://github.com/meteor/meteor/issues/435

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:54:30+00:00Added an answer on June 13, 2026 at 5:54 pm
    if each single template has content update it will rerender the whole page ?
    

    No, but all its parents’ rendered event will be triggered! Actually, rendered event propagate like dom events.
    And when reactive data in a specific template is changed, the content of its and all its sub templates will be re-rendered! But not his parents!
    Then what “constant” and “isolate” do? I think the best way to figure them out is to do some test.
    Here is a simple test:
    html:

        <head>
        <title>meteor_test</title>
    </head>
    
    <body>
        {{> main}}
    </body>
    
    <template name="main">
        This is main template!
        {{> subA}}
        {{> subB}}
    </template>
    
    <template name="subA">
        <div>
            ----This is subA! Input is surrounded by "constant"!
            {{#constant}} <input /> {{/constant}}
            Reactive data: {{reactiveData}}
            {{> subA_A}}
        </div>
    </template>
    
    <template name="subA_A">
        <div>
            --------This is subA_A!
            <input type="text" />
            Reactive data: {{reactiveData}}
        </div>
    </template>
    
    <template name="subB">
        <div>
            ----This is subB! Reactive data is surrounded by "isolate"!
            <input type="text" />
            Reactive data: {{#isolate}} {{reactiveData}} {{/isolate}}
            {{> subB_A}}
        </div>
    </template>
    
    <template name="subB_A">
        <div>
            --------This is subB_A!
            <input type="text" />
            Reactive data: {{reactiveData}}
            {{> subB_A_A}}
        </div>
    </template>
    
    <template name="subB_A_A">
        <div>
            ------------This is subB_A_A!
            <input type="text" />
            Reactive data: {{reactiveData}}
        </div>
    </template>
    

    js:

    if (Meteor.isClient) {
        Template.main.rendered = function () {
            console.log('main is rendered at %s', new Date());
        };
    
        Template.subA.helpers({
            reactiveData: function () {
                return Session.get('subA');
            }
        });
        Template.subA.rendered = function () {
            console.log('subA is rendered at %s', new Date());
        };
    
        Template.subB.helpers({
            reactiveData: function  () {
                return Session.get('subB');
            }
        });
        Template.subB.rendered = function () {
            console.log('subB is rendered at %s', new Date());
        };
    
        Template.subA_A.helpers({
            reactiveData: function () {
                return Session.get('subA_A');
            }
        });
        Template.subA_A.rendered = function () {
            console.log('subA_A is rendered at %s', new Date());
        };
    
        Template.subB_A.helpers({
            reactiveData: function () {
                return Session.get('subB_A');
            }
        });
        Template.subB_A.rendered = function () {
            console.log('subB_A is rendered at %s', new Date());
        };
    
        Template.subB_A_A.helpers({
            reactiveData: function () {
                return Session.get('subB_A_A');
            }
        });
        Template.subB_A_A.rendered = function () {
            console.log('subB_A_A is rendered at %s', new Date());
        };
    }
    

    Use chrome’s/firebug’s console to change the session data, see what will happen. Pay attention to whether the text entered in these inputs will be cleared(means been re-rendered) when reactive changed and whether the rendered event is triggered.

    ……sorry about my English, too^_^

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a very cool template which the creator was nice enough to make
use the [] symbol in the name of the form field you are submitting
Use of gradient images is very common among developers for styling a page. Gradient
I sometimes use braces to isolate a block of code to avoid using by
In C#, I use XML/XSLT transformation to isolate markup from data. What's the equivalent
I'm developer of Robocode engine. We would like to make Robocode multilingual and Scala
We have a windows application, where we make use IsolatedStorage to save some application
Use Case Show a photo uploaded by the user in a square box with
use C#,want to upload excel file on google doc. bellow syntax use to upload
use Text::Table; my $tb = Text::Table->new(Planet,Radius\nkm,Density\ng/cm^3); $tb->load( [ Mercury,2360,3.7], [ Mercury,2360,3.7], [ Mercury,2360,3.7], );

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.