Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Blaze._getTemplate to allow resolving into Blaze Components #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mitar
Copy link

@mitar mitar commented May 11, 2015

Same as #10, just against master which seems to be the branch all development is really happening?

With meteor/meteor@eff8016 there is now a Blaze._getTemplate function which is better to use than accessing Template[...] directly. The reason is that then packages like Blaze Components can override Blaze._getTemplate to provide resolving into components instead of bare templates.

mitar added 2 commits May 10, 2015 17:17
This makes things not rerender if the same template object is returned for a template. Template objects do not really change through their life. So we can just check references. Default reactive var equality returns false for all object comparisons, even if they are in fact equal.
@mitar
Copy link
Author

mitar commented May 11, 2015

Also added one simple optimization which minimizes rerenderings for dynamic templates. See meteor/meteor#4073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant