Open
Description
Which component is affected?
Qwik Optimizer (rust)
Describe the bug
When using component$(({foo, bar, ...props}) => ...)
it's possible to refer to the destructured props and the full props, and the optimizer will redeclare props when restructuring.
Reproduction
Steps to reproduce
import { component$, useComputed$, useTask$ } from '@builder.io/qwik'
export default component$<any>(({ color, class: classNames, onChange$, children, ...props }) => {
useComputed$(() => color)
useTask$(() => {
props.checked
})
return 'hi'
})
System Info
web
Additional Information
happens in v1 and v2.
Workaround: name the rest props something else