You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Excluding Livewire views from the current full-page-reload behavior #11
It's nothing fancy really! I just want to know how the current default Laravel-Livewire setup would work with this plugin! Because their current version does reload ALL blade files anyway, even if you set their plugin's refresh to false, as far as I tested...
But you've mentioned that we need to disable that page-reloading feature in order for the livewire plugin to do the reloading instead. And I don't know how one would do that with the new config file -which would look something like this, probably:
So you see this setup (with all versions up-to-date), I don't think it works, dude! From what I have tested, the page still fully reloads when only Livewire changes are there. And we get that exception thrown in the browser by this package that the page was reloaded by some other conflicting page-reloading thingie! 😵💫
Laravel plugin blade reload conflicts with this plugin, because it calls a full reload during livewire hot reload
The reason is that often you have livewire components that include blade components
To solve this, the last version of livewire plugin implements an opt-in full reload that adds a small checkbox on the bottom right corner of the page that allows you to switch between livewire hot reload and full page reload (handled by livewire plugin) when a blade file changes
So you should disable laravel refresh and enable livewire opt-in refresh by adding an VITE_LIVEWIRE_OPT_IN=true entry in your .env file
Activity
fabio-ivona commentedon Jul 31, 2022
Hi, could you please share the configuration you are trying to set up?
Random72IsTaken commentedon Jul 31, 2022
It's nothing fancy really! I just want to know how the current
defaultLaravel-Livewire setup would work with this plugin! Because their current version does reload ALL blade files anyway, even if you set their plugin'srefreshtofalse, as far as I tested...But you've mentioned that we need to disable that page-reloading feature in order for the livewire plugin to do the reloading instead. And I don't know how one would do that with the new config file -which would look something like this, probably:
So you see this setup (with all versions up-to-date), I don't think it works, dude! From what I have tested, the page still fully reloads when only Livewire changes are there. And we get that exception thrown in the browser by this package that the page was reloaded by some other conflicting page-reloading thingie! 😵💫
fabio-ivona commentedon Jul 31, 2022
Laravel plugin blade reload conflicts with this plugin, because it calls a full reload during livewire hot reload
The reason is that often you have livewire components that include blade components
To solve this, the last version of livewire plugin implements an opt-in full reload that adds a small checkbox on the bottom right corner of the page that allows you to switch between livewire hot reload and full page reload (handled by livewire plugin) when a blade file changes
So you should disable laravel refresh and enable livewire opt-in refresh by adding an VITE_LIVEWIRE_OPT_IN=true entry in your .env file
Random72IsTaken commentedon Jul 31, 2022
Oh, I see. So that's how it's done. Thank you! 🙂
fix #11