Skip to content

Commit a3c460b

Browse files
committed
optimisation: remove defensive props copy
now components get props through the props function, no need for this copy anymore
1 parent b348815 commit a3c460b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/component_node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class ComponentNode implements VNode<ComponentNode> {
6262
false,
6363
ComputationState.EXECUTED
6464
);
65-
this.props = Object.assign({}, props);
65+
this.props = props;
6666
contextStack.push({
6767
type: "component",
6868
app,

0 commit comments

Comments
 (0)