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

[Feature]: Allow Formatting Components using the Spread Operator .. #10

Closed
wiseaidev opened this issue Jan 21, 2024 · 1 comment
Closed

Comments

@wiseaidev
Copy link

wiseaidev commented Jan 21, 2024

When attempting to format this page, it complained about the spread operator:

error: expected an expression
   ┌─ /home/mahmoud/portfolio/wiseai.dev/src/pages/landing.rs:21:30
   │
21 │       <Hero ..profile_props />
   │                              ^

So, I would like to suggest enabling the formatting of components using the spread operator. Thanks!

Edit: In some cases, it works as expected, like in this line of code, probably because it is wrapped with {}.

@its-the-shrimp
Copy link
Owner

Thank you for reporting this, should be fixed in v0.3.0, feel free to reopen this issue if the problem resurfaces

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

2 participants