Breaks when visiting a page using Alpine+Livewire's entagle with Turbo #1534
-
Hey, folks. I'm having an issue when making a Turbo visit to a page that uses Alpine+Livewire's entangle. It throws an error in the console and the components don't work anymore. It works when I refresh the page, though (first browser refresh to that page). This error can be found in a Jetstream's clean install, after upgrading Alpine to v3 and manually installing Turbo ( I have an example application deployed that showcases the error: https://turbo-laravel.tonysm.com/ (you can use whatever dummy email+password to register and see it for yourself). Source code is here, here's the commit with the Laravel+Alpine+Livewire+Turbo upgrades. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
This is the missing piece to get Livewire+Alpine working fully with Turbo. I've tried to understand where the problem lies, but no luck. I couldn't wrap my head around entangle. I was able to trace it to this line in the The expression that it tried to evaluate is here (although I don't think it's valuable, I think - it's from one of the modals that come with Jetstream)
|
Beta Was this translation helpful? Give feedback.
-
Solution here: livewire/livewire#3151 (comment) |
Beta Was this translation helpful? Give feedback.
Solution here: livewire/livewire#3151 (comment)