MCPcopy
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
113function removeCb({ msg }) {
114 text('.toRemove', msg)
115 import.meta.hot.off('custom:remove', removeCb)
116}
117
118function hmr(key: string, value: unknown) {
119 ;(globalThis.__HMR__ as any)[key] = String(value)

Callers

nothing calls this directly

Calls 2

textFunction · 0.70
offMethod · 0.65

Tested by

no test coverage detected