@@ -41,12 +41,14 @@ exports.install = function (Vue) {
41
41
42
42
function shimComponent ( dir , map ) {
43
43
shimMethod ( dir , 'unbuild' , function ( defer ) {
44
- var prevComponent = this . childVM && this . childVM . constructor
45
- removeComponent ( prevComponent , map , this )
46
- // defer = true means we are transitioning to a new
47
- // Component. Register this new component to the list.
48
- if ( defer ) {
49
- addComponent ( this . Component , map , this )
44
+ if ( ! this . hotUpdating ) {
45
+ var prevComponent = this . childVM && this . childVM . constructor
46
+ removeComponent ( prevComponent , map , this )
47
+ // defer = true means we are transitioning to a new
48
+ // Component. Register this new component to the list.
49
+ if ( defer ) {
50
+ addComponent ( this . Component , map , this )
51
+ }
50
52
}
51
53
} )
52
54
}
@@ -113,6 +115,7 @@ exports.update = function (view) {
113
115
if ( ! view . _bound ) {
114
116
return
115
117
}
118
+ view . hotUpdating = true
116
119
// disable transitions
117
120
view . vm . _isCompiled = false
118
121
// save state
@@ -126,4 +129,5 @@ exports.update = function (view) {
126
129
view . childVM . $data = state
127
130
// re-eanble transitions
128
131
view . vm . _isCompiled = true
132
+ view . hotUpdating = false
129
133
}
0 commit comments