fix(docs): fix load error handling window reload example (#16159)

This commit is contained in:
Sean Washington 2024-03-13 22:48:42 -07:00 committed by GitHub
parent 7ee426194f
commit 5aabad32b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
})
```