Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ removeCb
Function
removeCb
playground/hmr-ssr/hmr.ts:113–116 ·
view source on GitHub ↗
({ msg })
Source
from the content-addressed store, hash-verified
111
}
112
113
function
removeCb({ msg }) {
114
text(
'.toRemove'
, msg)
115
import
.meta.hot.off(
'custom:remove'
, removeCb)
116
}
117
118
function
hmr(key: string, value: unknown) {
119
;(globalThis.__HMR__ as any)[key] = String(value)
Callers
nothing calls this directly
Calls
2
text
Function · 0.70
off
Method · 0.65
Tested by
no test coverage detected