fix(devtools): send update to component owning the slot
https://github.com/vuejs/vue-devtools/issues/1404
This commit is contained in:
parent
4f17be7b1c
commit
1355ee27a6
@ -1,4 +1,5 @@
|
|||||||
import { ComponentInternalInstance } from './component'
|
import { ComponentInternalInstance } from './component'
|
||||||
|
import { devtoolsComponentUpdated } from './devtools'
|
||||||
import { isRenderingCompiledSlot } from './helpers/renderSlot'
|
import { isRenderingCompiledSlot } from './helpers/renderSlot'
|
||||||
import { closeBlock, openBlock } from './vnode'
|
import { closeBlock, openBlock } from './vnode'
|
||||||
|
|
||||||
@ -78,6 +79,11 @@ export function withCtx(
|
|||||||
if (!isRenderingCompiledSlot) {
|
if (!isRenderingCompiledSlot) {
|
||||||
closeBlock()
|
closeBlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||||
|
devtoolsComponentUpdated(ctx)
|
||||||
|
}
|
||||||
|
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
// mark this as a compiled slot function.
|
// mark this as a compiled slot function.
|
||||||
|
Loading…
Reference in New Issue
Block a user