-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Livewire 3 - Laravel 11 - Tailwind CSS double refresh issue with HMR #309
Comments
@FHoulbreque Just curious - do you see I've hit a similar problem with Filament where field changes sometimes trigger a refresh. And there's always a corresponding line in the console output for a file in view cache directory. No idea why - I don't have any |
@binaryfire I thought you could be right, it could be related to the cache. But since I restarted vite with the -d parameter, I haven't had this bug once yet... I'll try to catch it this time. A part of me thinks it could be related to the background save of files from PHPStorm but it wouldn't be just after I input one character in any field, it would be random, which it isn't. Furthermore I do save manually before I check the changes. As soon as I have a better information about this, I'll post it. |
@binaryfire You were definitely right, it's related to a cached view file:
The load of the view cache only happens when interacting with the page though. |
@FHoulbreque Thanks for confirming. I just realised This only seems to have started in the last few weeks. So it might be because of a recent change. |
Vite Plugin Version
1.0.6
Laravel Version
11.33.2
Node Version
18.20.4
NPM Version
10.9.0
Operating System
Windows
OS Version
11 (23H2)
Web browser and version
Google Chrome 131.0.6778.86 (Official build) (64 bits)
Running in Sail?
No
Description
While progressing through development of my code (here it's coming from a course on Laracast) I encountered a strange behaviour with HMR:
wire:model
or not on it, the page reload and reset the state. It doesn't occur every time, it generally occurs when there has been a change either on the blade or the PHP part of a liverwire component.Steps To Reproduce
Reproduction
https://github.com/FHoulbreque/vite-livewire-hmr-bug
The text was updated successfully, but these errors were encountered: