Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of multiple spread operators #20

Open
MaijaHeiskanen opened this issue Mar 4, 2022 · 0 comments
Open

Usage of multiple spread operators #20

MaijaHeiskanen opened this issue Mar 4, 2022 · 0 comments

Comments

@MaijaHeiskanen
Copy link

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))) });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant