From 3b6494bf0fd44f390cc6da6b371dc0d7c077dd51 Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Mon, 30 Mar 2020 14:33:35 -0700 Subject: [PATCH] Added notes for `fastDomIf`, `removeNestedTemplates`, `suppressNestedTemplates`, and `suppressTemplateNotifications`. --- CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50c5767fe0..36f42184a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,6 +91,40 @@ This update to Polymer includes some new [global settings](https://polymer-libra **Should I use it?** The value of this setting depends on how your computed property functions are implemented. If they are pure and relatively inexpensive, you shouldn't need to enable this feature. If they have side effects that would make the order in which they are run important or are expensive enough that it would be a problem to run them multiple times for a property update, consider enabling it. +- `fastDomIf` + + **What does it do?** This setting enables a different implementation of `` that uses its host element's template stamping facilities (provided as part of `PolymerElement`) rather than including its own. This setting can help with performance but comes with a few caveats: + + - First, `fastDomIf` requires that every `` is in the shadow root of a Polymer element: you can't use a `` directly in the main document or inside a shadow root of an element that doesn't extend `PolymerElement`. + + - Second, because the `fastDomIf` implementation of `` doesn't include its own template stamping features, it doesn't create its own scope for property effects. This means that any properties you were previously setting on the `` will no longr be applied within its template, only properties of the host element are available. + + **Should I use it?** This setting is recommended as long as your app doesn't use `` as described in the section above. + +- `removeNestedTemplates` + + **What does it do?** This setting causes Polymer to remove the child `