Skip to content

Commit 81a3288

Browse files
[autofix.ci] apply automated fixes
1 parent ebbce68 commit 81a3288

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/runtime-core/src/helpers/withMemo.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export function withMemo(
1515

1616
// shallow clone
1717
ret.memo = memo.slice()
18-
19-
ret.cleanMemoCache = () => cache[index] = undefined
20-
18+
19+
ret.cleanMemoCache = () => (cache[index] = undefined)
20+
2121
return (cache[index] = ret)
2222
}
2323

packages/runtime-core/src/renderer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2079,8 +2079,8 @@ function baseCreateRenderer(
20792079
setRef(ref, null, parentSuspense, vnode, true)
20802080
}
20812081

2082-
// #6593 should clean memo cache when unmount
2083-
if (vnode.cleanMemoCache) {
2082+
// #6593 should clean memo cache when unmount
2083+
if (vnode.cleanMemoCache) {
20842084
vnode.cleanMemoCache()
20852085
}
20862086

0 commit comments

Comments
 (0)