File tree 3 files changed +9
-11
lines changed
packages/runtime-vapor/src
packages-private/vapor-e2e-test
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " vite dev" ,
8
- "build" : " vite build && vite preview "
8
+ "build" : " vite build"
9
9
},
10
10
"devDependencies" : {
11
11
"@types/connect" : " ^3.4.38" ,
Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ export function createComponent(
174
174
)
175
175
// TODO: problem is `frag.insert` will be called multiple times
176
176
// if used in v-if
177
- // if (!isHydrating && _insertionParent) {
178
- // insert(frag, _insertionParent, _insertionAnchor)
179
- // }
177
+ if ( ! isHydrating && _insertionParent && ! isKeepAlive ( currentInstance ) ) {
178
+ insert ( frag , _insertionParent , _insertionAnchor )
179
+ }
180
180
return frag
181
181
}
182
182
Original file line number Diff line number Diff line change @@ -183,13 +183,11 @@ export const VaporKeepAliveImpl: ObjectVaporComponent = defineVaporComponent({
183
183
}
184
184
185
185
function pruneCacheEntry ( key : CacheKey ) {
186
- const cached = cache . get ( key )
187
- if ( cached ) {
188
- resetShapeFlag ( cached )
189
- // don't unmount if the instance is the current one
190
- if ( cached !== current ) {
191
- remove ( cached )
192
- }
186
+ const cached = cache . get ( key ) !
187
+ resetShapeFlag ( cached )
188
+ // don't unmount if the instance is the current one
189
+ if ( cached !== current ) {
190
+ remove ( cached )
193
191
}
194
192
cache . delete ( key )
195
193
keys . delete ( key )
You can’t perform that action at this time.
0 commit comments