You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When placing your template before the Volt methods any use class lines get duplicated, resulting in "name is already in use" errors. It works fine if the template comes after the Volt methods.
Steps To Reproduce
With this component:
<div>
// my template
</div>
<?phpuseApp\Concerns\Form;usefunctionLivewire\Volt\{uses};uses(Form::class);
This is the compiled PHP:
<?phpuseApp\Concerns\Form;?>
<div>
// my template
</div>
<?phpuseApp\Concerns\Form;usefunctionLivewire\Volt\{uses};uses(Form::class); ?>
The text was updated successfully, but these errors were encountered:
Volt Version
1.0.0
Laravel Version
10.20.0
PHP Version
8.2.9
Database Driver & Version
No response
Description
When placing your template before the Volt methods any use class lines get duplicated, resulting in "name is already in use" errors. It works fine if the template comes after the Volt methods.
Steps To Reproduce
With this component:
This is the compiled PHP:
The text was updated successfully, but these errors were encountered: