Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ dispose
Method
dispose
packages/vite/src/shared/hmr.ts:87–89 ·
view source on GitHub ↗
(cb: (data: any) => void)
Source
from the content-addressed store, hash-verified
85
}
86
87
dispose(cb: (data: any) => void): void {
88
this.hmrClient.disposeMap.set(this.ownerPath, cb)
89
}
90
91
prune(cb: (data: any) => void): void {
92
this.hmrClient.pruneMap.set(this.ownerPath, cb)
Callers
nothing calls this directly
Calls
1
set
Method · 0.45
Tested by
no test coverage detected