Skip to content

Commit eeae8d7

Browse files
committed
readme [ci skip]
1 parent 12cce73 commit eeae8d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ Finally, visit `http://localhost:8080/webpack-dev-server/` to see the app with h
191191

192192
For a complete example with hot reloading in action, see [vue-hackernews](https://github.com/vuejs/vue-hackernews).
193193

194+
### Hot Reload Notes
195+
196+
- When a component is hot-reloaded, its current state is preserved. However, the component itself is destroyed and recreated, so all of its lifecycle hooks will be called accordingly. Make sure to properly teardown any side effects in your lifecycle hooks.
197+
198+
- Private state for child components of a hot-reloaded component is not guaranteed to be preserved across reloads.
199+
200+
- A root Vue instance or a manually mounted instance cannot be hot-reloaded. It will always force a full reload.
201+
194202
## Advanced Loader configuration
195203

196204
By default, `vue-loader` will try to use the loader with the same name as

0 commit comments

Comments
 (0)