diff --git a/lib/utils/templatize.js b/lib/utils/templatize.js index 9f05135470..7cdcb8ca4a 100644 --- a/lib/utils/templatize.js +++ b/lib/utils/templatize.js @@ -364,7 +364,11 @@ function createTemplatizerClass(template, templateInfo, options) { */ function addPropagateEffects(template, templateInfo, options) { let userForwardHostProp = options.forwardHostProp; - if (userForwardHostProp) { + const hasHostProps = templateInfo.hasHostProps || + (templateInfo.hasHostProps = + Boolean(templateInfo.hostProps && + Object.keys(templateInfo.hostProps).length)); + if (userForwardHostProp && hasHostProps) { // Provide data API and property effects on memoized template class let klass = templateInfo.templatizeTemplateClass; if (!klass) {