Commit 6be8792
authored
fix: auto-reload page when stale JS chunks cause blank screen (#63)
After a new deployment, cached HTML pages reference old hashed JS
chunk filenames that no longer exist, resulting in 404s and a blank
page. This adds a client error hook that detects the module import
failure and automatically reloads to fetch fresh assets.
Closes #621 parent f27eb77 commit 6be8792
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments