0.1.4 • Published 3 years ago

livewire-turbolinks v0.1.4

Weekly downloads
213
License
MIT
Repository
github
Last release
3 years ago

Livewire Turbolinks/Turbo Plugin

If you are using Turbolinks/Turbo AND Livewire on the same page, this plugin is required.

Livewire Version 1 supported Turbolinks internally. Livewire Version 2 has removed internal support and extracted it into this plugin.

The goal of this adapter is to provide full Turbolinks/Turbo support in Livewire. However, because certain current and future features may be incompatible, we've extracted this into a separate package with the goal of keeping Turbolinks expectations, bugs, and fixes, isolated and away from the core of Livewire.

To that end, there are loose plans to add a Turbolinks-esque set of functionality to Livewire itself, but there are no immediate plans.

For the forseeable future, this adapter will remain a valid option for Livewire users hoping to use Turbolinks in their apps.

Livewire Version Support

(Livewire version 1.x supports Turbolinks out of the box)

Livewire VersionTurbolinks/Turbo Plugin Version
2.x0.1.x

Installation

CDN

Include the CDN asset after @livewireScripts or <livewire:scripts> in your app's HTML:

Note: You MUST have either the data-turbolinks-eval="false" or data-turbo-eval="false" attributes added to the script tag (having both won't hurt).

    ...
    @livewireScripts
    <script src="https://cdn.jsdelivr.net/gh/livewire/turbolinks@v0.1.x/dist/livewire-turbolinks.js" data-turbolinks-eval="false" data-turbo-eval="false"></script>
</body>
0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

4 years ago