This PR addresses the blank screen issue that occurs frequently in dev when Vite optimizes dependencies and triggers a page reload.
Links to any relevant issues
Fixes #188. Read the comments in this issue to understand the tradeoffs of this PR.
How the change has been tested
You need to look at this PR as an attempt to make it unlikely that the blank screen issue occurs, and if it occurs to increase the chance that the app is in a state in which you can continue developing. High chance that the fixes do not cover all corner cases.
I tested by removing node_modules and installing dependencies several times, which should trigger Vite dependency optimizations. There should be none because of the dependency inclusion list in vite.config.ts.
Definition of Done checklist
Add an x to the boxes that are relevant to your changes.
[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description of change
This PR addresses the blank screen issue that occurs frequently in dev when Vite optimizes dependencies and triggers a page reload.
Links to any relevant issues
Fixes #188. Read the comments in this issue to understand the tradeoffs of this PR.
How the change has been tested
You need to look at this PR as an attempt to make it unlikely that the blank screen issue occurs, and if it occurs to increase the chance that the app is in a state in which you can continue developing. High chance that the fixes do not cover all corner cases.
I tested by removing
node_modules
and installing dependencies several times, which should trigger Vite dependency optimizations. There should be none because of the dependency inclusion list invite.config.ts
.Definition of Done checklist
Add an
x
to the boxes that are relevant to your changes.