Skip to content

Commit

Permalink
try removing mapping logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Nov 11, 2023
1 parent 6eea998 commit e6a3d0c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/core/src/runtime/vnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,7 @@ options.vnode = vnode => {
vnodes.push(vnode);
}

const foundType = getMappedVnode(vnode.type);
if (foundType !== vnode.type) {
const vnodes = vnodesForComponent.get(foundType);
if (!vnodes) {
vnodesForComponent.set(foundType, [vnode]);
} else {
vnodes.push(vnode);
}
}

vnode.type = foundType;
if (
vnode[VNODE_COMPONENT] &&
'prototype' in vnode.type &&
vnode.type.prototype.render
) {
vnode[VNODE_COMPONENT].constructor = vnode.type;
}
}

if (oldVnode) oldVnode(vnode);
Expand Down

0 comments on commit e6a3d0c

Please sign in to comment.