pruneCacheEntry() — vue Function Reference
Architecture documentation for the pruneCacheEntry() function in keep-alive.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 62b734d8_8f31_1f86_04dd_23e2c46f149f["pruneCacheEntry()"] b0411514_5aab_a7ba_2f4b_a2aab97320ea["pruneCache()"] b0411514_5aab_a7ba_2f4b_a2aab97320ea -->|calls| 62b734d8_8f31_1f86_04dd_23e2c46f149f 421f03ff_7f0b_9854_5adf_43ddcdaf0d0e["default.destroyed()"] 421f03ff_7f0b_9854_5adf_43ddcdaf0d0e -->|calls| 62b734d8_8f31_1f86_04dd_23e2c46f149f 47c14f28_c1ca_52d4_cc59_404156ff9d1e["remove()"] 62b734d8_8f31_1f86_04dd_23e2c46f149f -->|calls| 47c14f28_c1ca_52d4_cc59_404156ff9d1e style 62b734d8_8f31_1f86_04dd_23e2c46f149f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/components/keep-alive.ts lines 57–70
function pruneCacheEntry(
cache: CacheEntryMap,
key: string,
keys: Array<string>,
current?: VNode
) {
const entry = cache[key]
if (entry && (!current || entry.tag !== current.tag)) {
// @ts-expect-error can be undefined
entry.componentInstance.$destroy()
}
cache[key] = null
remove(keys, key)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does pruneCacheEntry() do?
pruneCacheEntry() is a function in the vue codebase.
What does pruneCacheEntry() call?
pruneCacheEntry() calls 1 function(s): remove.
What calls pruneCacheEntry()?
pruneCacheEntry() is called by 2 function(s): default.destroyed, pruneCache.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free