-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Which component is affected?
Qwik Runtime
Describe the bug
This code will not get bind:value transformed because _jsxSorted doesn't do that:
import { component$, useSignal } from '@qwik.dev/core';
export default component$(() => {
const Cmp = Math.random() >= 0.5 ? 'button' : 'input'
const sig = useSignal(0)
return (
<div>
<Cmp bind:value={sig} />
</div>
);
});This gets transformed to
import { _jsxSorted } from "@qwik.dev/core";
import { useSignal } from "@qwik.dev/core";
export const app_component_QbmWc3TlyqA = ()=>{
const Cmp = Math.random() >= 0.5 ? 'button' : 'input';
const sig = useSignal(0);
return /*#__PURE__*/ _jsxSorted("div", null, null, /*#__PURE__*/ _jsxSorted(Cmp, null, {
"bind:value": sig
}, null, 3, "ga_0", {
fileName: "../app.tsx",
lineNumber: 8,
columnNumber: 7
}), 1, "ga_1", {
fileName: "../app.tsx",
lineNumber: 7,
columnNumber: 5
});
};Reproduction
see above
Steps to reproduce
No response
System Info
v2Additional Information
No response
Reactions are currently unavailable