Quasar CLI Vite multiple page reloads on cold start (no .q-cache) #12933
Labels
area/cli
bug/1-hard-to-reproduce
A reproduction is available, but it's hard to reproduce, so it has a lower priority.
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When running quasar dev for the first time (no cache), the page will reload multiple times for no apparent reason. I'm pretty sure that this impacts the cold start time of my project. These reloads don't happen on subsequent
quasar dev
.This is happening on all the projects that I migrated to the new CLI.
The below is a typical scenario. You can see that it took about 30 seconds. I'm fine with it being long because of the size of the app, but I'm pretty sure these reloads are really not helping.
I reproduced it on a simple app created with
create quasar
. You can see that this is much less impactful on the render time since the app is really small, you can still see the multiple reloads.In the network tab, you can actually see that the reload is caused by a websocket request of type
full-reload
.What did you expect to happen?
No unnecessary reloads.
Reproduction URL
https://github.com/philfontaine/quasar-vite-reload-bug
How to reproduce?
I provided a repro because it's mandatory but it's just a simple quasar app. There is electron in there but it's not used or related to this bug.
node_modules\.q-cache
Preserve Log
checked to see the multiple reloads.Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: