File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export function withMemo(
15
15
16
16
// shallow clone
17
17
ret . memo = memo . slice ( )
18
- ret . memoIndex = index
18
+ ret . cacheIndex = index
19
19
20
20
return ( cache [ index ] = ret )
21
21
}
Original file line number Diff line number Diff line change @@ -2109,7 +2109,7 @@ function baseCreateRenderer(
2109
2109
shapeFlag,
2110
2110
patchFlag,
2111
2111
dirs,
2112
- memoIndex ,
2112
+ cacheIndex ,
2113
2113
} = vnode
2114
2114
2115
2115
if ( patchFlag === PatchFlags . BAIL ) {
@@ -2122,8 +2122,8 @@ function baseCreateRenderer(
2122
2122
}
2123
2123
2124
2124
// #6593 should clean memo cache when unmount
2125
- if ( memoIndex != null ) {
2126
- parentComponent ! . renderCache [ memoIndex ] = undefined
2125
+ if ( cacheIndex != null ) {
2126
+ parentComponent ! . renderCache [ cacheIndex ] = undefined
2127
2127
}
2128
2128
2129
2129
if ( shapeFlag & ShapeFlags . COMPONENT_SHOULD_KEEP_ALIVE ) {
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ export interface VNode<
243
243
/**
244
244
* @internal index for cleaning v-memo cache
245
245
*/
246
- memoIndex ?: number
246
+ cacheIndex ?: number
247
247
/**
248
248
* @internal __COMPAT__ only
249
249
*/
You can’t perform that action at this time.
0 commit comments