Vue · Senior · Question 63 of 75
Why add acceptHMRUpdate to Pinia store files?
- ✓Correct answer: So editing a store during development hot-replaces it without reloading the page and losing state
- 2It's required in production
- 3It improves SSR performance
Explanation
Without it, Vite falls back to a full reload when the store module changes.