Skip to content

Commit 9176246

Browse files
rexxarstony19
authored andcommitted
feat: add vite:afterUpdate event (#9810)
1 parent b57e183 commit 9176246

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/guide/api-hmr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Listen to an HMR event.
145145
The following HMR events are dispatched by Vite automatically:
146146
147147
- `'vite:beforeUpdate'` when an update is about to be applied (e.g. a module will be replaced)
148+
- `'vite:afterUpdate'` when an update has just been applied (e.g. a module has been replaced)
148149
- `'vite:beforeFullReload'` when a full reload is about to occur
149150
- `'vite:beforePrune'` when modules that are no longer needed are about to be pruned
150151
- `'vite:invalidate'` when a module is invalidated with `import.meta.hot.invalidate()`

0 commit comments

Comments
 (0)