Skip to content

Commit 37fb988

Browse files
committed
comments
1 parent 5ec2a7b commit 37fb988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/render.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ function renderNode (node, isRoot, context) {
4343
const Ctor = node.componentOptions.Ctor
4444
const getKey = Ctor.options.serverCacheKey
4545
const name = Ctor.options.name
46+
// exposed by vue-loader, need to call this if cache hit because
47+
// component lifecycle hooks will not be called.
4648
const injectStyles = Ctor.options._injectStyles
4749
const cache = context.cache
4850
if (isDef(getKey) && isDef(cache) && isDef(name)) {

0 commit comments

Comments
 (0)