You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guide/api-hmr.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,6 @@ interface ViteHotContext {
30
30
31
31
dispose(cb: (data:any) =>void):void
32
32
prune(cb: (data:any) =>void):void
33
-
decline():void
34
33
invalidate(message?:string):void
35
34
36
35
// `InferCustomEventPayload` provides types for built-in Vite events
@@ -139,7 +138,7 @@ The `import.meta.hot.data` object is persisted across different instances of the
139
138
140
139
## `hot.decline()`
141
140
142
-
Calling `import.meta.hot.decline()` indicates this module is not hot-updatable, and the browser should perform a full reload if this module is encountered while propagating HMR updates.
141
+
This is currently a noop and is there for backward compatibility. This could change in the future if there is a new usage for it. To indicate that the module is not hot-updatable, use `hot.invalidate()`.
0 commit comments