Skip to main content

vite-syntax-hmr-api

Use when implementing custom HMR handling, debugging HMR issues, writing HMR-aware modules, or understanding why full reloads happen. Prevents missing the import.meta.hot guard (causing production errors), reassigning hot.data instead of mutating it, and forgetting accept() boundaries. Covers ViteHotContext interface, import.meta.hot guard pattern, hot.accept() for self-accepting and dependency-accepting modules, hot.dispose(), hot.prune(), hot.invalidate(), hot.data for persistent state, hot.on()/hot.off()/hot.send() for custom events, built-in HMR events, and HMR boundary concept. Keywords: vite, HMR, hot module replacement, accept, dispose, invalidate, hot.data, full reload, changes not showing, page reloads instead of HMR, hot reload broken, preserve state on edit.

Jump to install

Source facts

Repository
Impertio-Studio/Vite-Claude-Skill-Package
Last source activity
March 30, 2026 at 18:25
Detected SKILL.md language
English
Stars
3
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.