Skip to content

Commit

Permalink
fix: use "api.isRecorded" instead of "module.hot.data" (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo authored and yyx990803 committed Jul 17, 2019
1 parent c359a38 commit 6a05115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codegen/hotReload.js
Expand Up @@ -19,7 +19,7 @@ if (module.hot) {
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!module.hot.data) {
if (!api.isRecorded('${id}')) {
api.createRecord('${id}', component.options)
} else {
api.${functional ? 'rerender' : 'reload'}('${id}', component.options)
Expand Down

0 comments on commit 6a05115

Please sign in to comment.