We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a75c34 commit 48b79d0Copy full SHA for 48b79d0
packages/runtime-core/src/createRenderer.ts
@@ -1502,8 +1502,8 @@ export function createRenderer<
1502
// and oldIndex = 0 is a special value indicating the new node has
1503
// no corresponding old node.
1504
// used for determining longest stable subsequence
1505
- const newIndexToOldIndexMap = []
1506
- for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap.push(0)
+ const newIndexToOldIndexMap = new Array(toBePatched)
+ for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0
1507
1508
for (i = s1; i <= e1; i++) {
1509
const prevChild = c1[i]
0 commit comments