laravel-frontend-presets / tall

A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
MIT License
2.42k stars 203 forks source link

AlpineJS initialized twice in livewire v3 #147

Closed sergio0983 closed 9 months ago

sergio0983 commented 9 months ago

File: resources/js/app.js

That file includes these lines:

import Alpine from 'alpinejs'
window.Alpine = Alpine
Alpine.start()

It seems like livewire v3 already runs Alpine.start by itself, and those lines in app.js cause Alpine to be initialized twice.

danharrin commented 9 months ago

Please open a PR to completely remove Alpine from all areas, we don't need it anymore as it's included in LW3

sergio0983 commented 9 months ago

Done. Let me know if there is any problem with the pull request, I am not too familiar with github workflow.

danharrin commented 9 months ago

Thanks!