File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/runtime-vapor/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ export const createFor = (
256
256
const previousKeyIndexMap = new Map ( previousKeyIndexPairs )
257
257
const operations : ( ( ) => void ) [ ] = [ ]
258
258
259
+ let mountCounter = 0
259
260
const relocateOrMountBlock = (
260
261
blockIndex : number ,
261
262
blockItem : ReturnType < typeof getItem > ,
@@ -280,6 +281,7 @@ export const createFor = (
280
281
)
281
282
}
282
283
} else {
284
+ mountCounter ++
283
285
operations . push ( ( ) =>
284
286
mount (
285
287
source ,
@@ -310,7 +312,7 @@ export const createFor = (
310
312
relocateOrMountBlock ( i , blockItem , blockKey , - 1 )
311
313
}
312
314
313
- const useFastRemove = operations . length === newLength
315
+ const useFastRemove = mountCounter === newLength
314
316
315
317
for ( const leftoverIndex of previousKeyIndexMap . values ( ) ) {
316
318
unmount (
You can’t perform that action at this time.
0 commit comments