File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ export default {
14
14
const rawChild = this . child
15
15
const realChild = getRealChild ( this . child )
16
16
if ( realChild && realChild . componentOptions ) {
17
- const cid = realChild . componentOptions . Ctor . cid
18
- if ( this . cache [ cid ] ) {
19
- const child = realChild . child = this . cache [ cid ] . child
17
+ const opts = realChild . componentOptions
18
+ // same constructor may get registered as different local components
19
+ // so cid alone is not enough (#3269)
20
+ const key = opts . Ctor . cid + '::' + opts . tag
21
+ if ( this . cache [ key ] ) {
22
+ const child = realChild . child = this . cache [ key ] . child
20
23
realChild . elm = this . $el = child . $el
21
24
} else {
22
- this . cache [ cid ] = realChild
25
+ this . cache [ key ] = realChild
23
26
}
24
27
realChild . data . keepAlive = true
25
28
}
You can’t perform that action at this time.
0 commit comments