Upgrade to Livewire 3 (#103)

* upgrade to livewire 3

* fix updater

* fix modal events

* fix modal events
This commit is contained in:
Saeed Vaziry
2024-02-04 18:11:22 +01:00
committed by GitHub
parent 3da1f4fe4c
commit 8bffefabef
98 changed files with 529 additions and 303 deletions

View File

@ -189,15 +189,15 @@ class="min-h-screen w-64 flex-none border-r border-gray-200 bg-white dark:border
</div>
<x-toast />
<livewire:broadcast />
@livewireScripts
@livewireScriptConfig
<script>
document.addEventListener('livewire:load', () => {
Livewire.onPageExpired((response, message) => {
({
href: window.location.href
} = window.location);
})
})
// document.addEventListener('livewire:init', () => {
// Livewire.onPageExpired((response, message) => {
// ({
// href: window.location.href
// } = window.location);
// })
// })
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia(