You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i changing test.vue file - hot reload won't works.
As i can see this is because Vue.component creates new options object, but hot reload stores original component object
if i adds something like this:
function makeOptionsHot(id, options) {
if (options.functional) {
var render = options.render
options.render = function (h, ctx) {
+ var record = map[id]+ if (record.options !== ctx.$options) {+ record.options = ctx.$options+ }
var instances = map[id].instances
if (ctx && instances.indexOf(ctx.parent) < 0) {
instances.push(ctx.parent)
}
return render(h, ctx)
}
all works as expected
The text was updated successfully, but these errors were encountered:
If i changing
test.vue
file - hot reload won't works.As i can see this is because
Vue.component
creates new options object, but hot reload stores original component objectif i adds something like this:
all works as expected
The text was updated successfully, but these errors were encountered: