File tree 2 files changed +6
-8
lines changed
packages/runtime-vapor/src/components
packages-private/vapor-e2e-test
2 files changed +6
-8
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 @@ -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