fix(core): typing of key in VNodeProps (#4242)

close #4240
This commit is contained in:
AlexandraCaragata
2021-08-06 17:11:26 +02:00
committed by GitHub
parent 9bee5ccea4
commit d045055b47
3 changed files with 4 additions and 4 deletions

View File

@@ -1873,7 +1873,7 @@ function baseCreateRenderer(
const s2 = i // next starting index
// 5.1 build key:index map for newChildren
const keyToNewIndexMap: Map<string | number, number> = new Map()
const keyToNewIndexMap: Map<string | number | symbol, number> = new Map()
for (i = s2; i <= e2; i++) {
const nextChild = (c2[i] = optimized
? cloneIfMounted(c2[i] as VNode)