|
@@ -177,7 +177,7 @@ function renderComponentSubTree(
|
|
|
if (isFunction(comp)) {
|
|
if (isFunction(comp)) {
|
|
|
renderVNode(push, renderComponentRoot(instance), instance)
|
|
renderVNode(push, renderComponentRoot(instance), instance)
|
|
|
} else {
|
|
} else {
|
|
|
- if (!comp.ssrRender && !comp.render && isString(comp.template)) {
|
|
|
|
|
|
|
+ if (!instance.render && !comp.ssrRender && isString(comp.template)) {
|
|
|
comp.ssrRender = ssrCompile(comp.template, instance)
|
|
comp.ssrRender = ssrCompile(comp.template, instance)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -187,7 +187,7 @@ function renderComponentSubTree(
|
|
|
setCurrentRenderingInstance(instance)
|
|
setCurrentRenderingInstance(instance)
|
|
|
comp.ssrRender(instance.proxy, push, instance)
|
|
comp.ssrRender(instance.proxy, push, instance)
|
|
|
setCurrentRenderingInstance(null)
|
|
setCurrentRenderingInstance(null)
|
|
|
- } else if (comp.render) {
|
|
|
|
|
|
|
+ } else if (instance.render) {
|
|
|
renderVNode(push, renderComponentRoot(instance), instance)
|
|
renderVNode(push, renderComponentRoot(instance), instance)
|
|
|
} else {
|
|
} else {
|
|
|
throw new Error(
|
|
throw new Error(
|