Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 20, 2023
1 parent ebbce68 commit 81a3288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/src/helpers/withMemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export function withMemo(

// shallow clone
ret.memo = memo.slice()
ret.cleanMemoCache = () => cache[index] = undefined

ret.cleanMemoCache = () => (cache[index] = undefined)

return (cache[index] = ret)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2079,8 +2079,8 @@ function baseCreateRenderer(
setRef(ref, null, parentSuspense, vnode, true)
}

// #6593 should clean memo cache when unmount
if (vnode.cleanMemoCache) {
// #6593 should clean memo cache when unmount
if (vnode.cleanMemoCache) {
vnode.cleanMemoCache()
}

Expand Down

0 comments on commit 81a3288

Please sign in to comment.