Open rustynail1984 opened 10 months ago
@rustynail1984 Replace themeChange()
with
addEventListener('livewired:navigated', () => {
themeChange(false);
});
This also applies to anyone using turbo:
addEventListener("turbo:load", () => {
themeChange(false);
})
Toggle is not working after navigate in a Livewire 3 app using wire:navigate.. you need to use
livewire:navigated
instead ofDOMContentLoaded