impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
18 stars 3 forks source link

fix: mitigate blank screen during dev #195

Closed maiertech closed 5 months ago

maiertech commented 5 months ago

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 in vite.config.ts.

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.