Skip to content

Commit

Permalink
fix(v2): mutating component props (#6725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Varixo authored Jul 26, 2024
1 parent 49ef55e commit a85a2b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/qwik/src/core/v2/ssr/ssr-render-jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ function processJSXNode(
} else if (type === SSRRaw) {
ssr.htmlNode(jsx.props.data as string);
} else if (isQwikComponent(type)) {
ssr.openComponent(isDev ? [DEBUG_TYPE, VirtualType.Component] : EMPTY_ARRAY);
// prod: use new instance of an array for props, we always modify props for a component
ssr.openComponent(isDev ? [DEBUG_TYPE, VirtualType.Component] : []);
const host = ssr.getLastNode();
ssr.getComponentFrame(0)!.distributeChildrenIntoSlots(jsx.children, styleScoped);
const jsxOutput = applyQwikComponentBody(ssr, jsx, type);
Expand Down

0 comments on commit a85a2b9

Please sign in to comment.