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

Inline anonymous components #66

Open
AJenbo opened this issue Jun 14, 2023 · 0 comments
Open

Inline anonymous components #66

AJenbo opened this issue Jun 14, 2023 · 0 comments

Comments

@AJenbo
Copy link
Contributor

AJenbo commented Jun 14, 2023

As things are components are analyzed from the context of there associated class. This however leaves out anonymous Components since they do not have a corresponding class which render them by calling view().

https://laravel.com/docs/10.x/blade#anonymous-components

The solution here (I have not yet investigated it) is probably to inline them in a similar fashion to how @include directives are being handled.

I might be able to work on this, but do not have a time line for when that would happen as there are a few other things we need to work on at the moment.


As a side note we have rolled out Bladestan on our code and it's now passing 24 blade files at level 9, 556 at level 1, and 391 at level 3... minus how ever many anonymous components we have :)

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