Skip to content

Commit 50126ca

Browse files
autofix-ci[bot]yyx990803
authored andcommitted
[autofix.ci] apply automated fixes
1 parent a0a5afa commit 50126ca

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
@@ -2116,8 +2116,8 @@ function baseCreateRenderer(
21162116
setRef(ref, null, parentSuspense, vnode, true)
21172117
}
21182118

2119-
// #6593 should clean memo cache when unmount
2120-
if (vnode.cleanMemoCache) {
2119+
// #6593 should clean memo cache when unmount
2120+
if (vnode.cleanMemoCache) {
21212121
vnode.cleanMemoCache()
21222122
}
21232123

0 commit comments

Comments
 (0)