ClassComponent,
isClassComponent
} from './component'
-import { nextTick, queueJob } from './scheduler'
+import { queueJob, queuePostFlushCb } from './scheduler'
import { extend } from '@vue/shared'
import { warn } from './warning'
// on patch.
hmrDirtyComponents.add(component)
// 3. Make sure to unmark the component after the reload.
- nextTick(() => {
+ queuePostFlushCb(() => {
hmrDirtyComponents.delete(component)
})
}
if (instance.ceReload) {
// custom element
+ hmrDirtyComponents.add(component)
instance.ceReload()
+ hmrDirtyComponents.delete(component)
} else if (instance.parent) {
// 4. Force the parent instance to re-render. This will cause all updated
// components to be unmounted and re-mounted. Queue the update so that we