"type": "module",
"scripts": {
"dev": "vite dev",
- "build": "vite build && vite preview"
+ "build": "vite build"
},
"devDependencies": {
"@types/connect": "^3.4.38",
)
// TODO: problem is `frag.insert` will be called multiple times
// if used in v-if
- // if (!isHydrating && _insertionParent) {
- // insert(frag, _insertionParent, _insertionAnchor)
- // }
+ if (!isHydrating && _insertionParent && !isKeepAlive(currentInstance)) {
+ insert(frag, _insertionParent, _insertionAnchor)
+ }
return frag
}
}
function pruneCacheEntry(key: CacheKey) {
- const cached = cache.get(key)
- if (cached) {
- resetShapeFlag(cached)
- // don't unmount if the instance is the current one
- if (cached !== current) {
- remove(cached)
- }
+ const cached = cache.get(key)!
+ resetShapeFlag(cached)
+ // don't unmount if the instance is the current one
+ if (cached !== current) {
+ remove(cached)
}
cache.delete(key)
keys.delete(key)