What seems to be the problem:
I have turbolinks working correctly. However there is one catch.
When I logout and login to my laravel application (using standard session based auth) and navigate to a livewire component and start interacting with wired elements, no ajax requests are fired (on all livewire components). After I reload the page, all components work as expected.
Has anyone else ran into this? I am on the latest version of livewire and below is my turbolinks integration (super simple). Something else to point out is that window.livewire is undefined when the app loads the first time but after refreshing the page livewire starts to work.
const Turbolinks = require("turbolinks")
Turbolinks.start()
Looks like this is the issue. Any way around this?
From turbolinks: Annotate elements with data-turbolinks-eval=“false” if you do not want Turbolinks to evaluate them after rendering. Note that this annotation will not prevent your browser from evaluating scripts on the initial page load. - https://github.com/turbolinks/turbolinks#working-with-script-elements