We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c00a0a commit c66150aCopy full SHA for c66150a
src/index.tsx
@@ -16,3 +16,8 @@ const domNode = document.getElementById('root');
16
if (domNode) {
17
createRoot(domNode).render(<Main />);
18
}
19
+
20
+// https://vite.dev/guide/build#load-error-handling
21
+window.addEventListener('vite:preloadError', () => {
22
+ window.location.reload();
23
+});
0 commit comments