ts-transform-inferno icon indicating copy to clipboard operation
ts-transform-inferno copied to clipboard

Usage of multiple spread operators

Open MaijaHeiskanen opened this issue 2 years ago • 0 comments

Using multiple spread operators to give props to a component does not work. If there is multiple spread operators, only the last one is taken into account.

Example: <FooBar><BarFoo {...magics} {...foobars} {...props}/></FooBar> transpiles to createComponentVNode(2, FooBar, { "children": normalizeProps(createComponentVNode(2, BarFoo, __assign({}, props))) }); when expected output would be createComponentVNode(2, FooBar, { "children": normalizeProps(createComponentVNode(2, BarFoo, __assign({}, magics, foobars, props))) });

MaijaHeiskanen avatar Mar 04 '22 13:03 MaijaHeiskanen