Open
Description
Which component is affected?
Qwik Runtime
Describe the bug
The props of the component$
are given as the args of the QRL, so they should be mutable, but they are declared as const
to be immutable through the useLexicalScope
. This makes mismatch.
So if I try to change the value of the args, it causes TypeError: Assignment to constant variable.
even if there's no error in compile time.
Reproduction
https://stackblitz.com/edit/qwik-starter-c2m93t?file=src%2Froutes%2Findex.tsx
Steps to reproduce
Please see the link above.
System Info
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M2
Memory: 93.02 MB / 24.00 GB
Shell: 3.6.1 - /opt/homebrew/bin/fish
Binaries:
Node: 20.12.1 - /opt/homebrew/opt/node@20/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.5.0 - /opt/homebrew/opt/node@20/bin/npm
pnpm: 8.7.5 - ~/Library/pnpm/pnpm
bun: 1.1.3 - ~/.bun/bin/bun
Browsers:
Chrome: 125.0.6422.113
Safari: 17.4.1
npmPackages:
@builder.io/qwik: file:../clone/qwik/packages/qwik/dist => 1.5.3-dev20240507001309
@builder.io/qwik-city: file:../clone/qwik/packages/qwik-city/lib => 1.5.3-dev20240507001309
typescript: ^5.3.3 => 5.3.3
undici: ^5.28.3 => 5.28.4
vite: ^5.1.5 => 5.2.11
Additional Information
No response