mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
fix(docs): fix load error handling window reload example (#16159)
This commit is contained in:
parent
7ee426194f
commit
5aabad32b2
@ -70,7 +70,7 @@ Vite emits `vite:preloadError` event when it fails to load dynamic imports. `eve
|
||||
|
||||
```js
|
||||
window.addEventListener('vite:preloadError', (event) => {
|
||||
window.reload() // for example, refresh the page
|
||||
window.location.reload() // for example, refresh the page
|
||||
})
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user