Skip to content

Commit

Permalink
fix(docs): fix load error handling window reload example (#16159)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwash authored Mar 14, 2024
1 parent 7ee4261 commit 5aabad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
```

Expand Down

0 comments on commit 5aabad3

Please sign in to comment.