fix(devtools): send update to component owning the slot

https://github.com/vuejs/vue-devtools/issues/1404
This commit is contained in:
Guillaume Chau 2021-05-19 18:19:28 +02:00
parent 4f17be7b1c
commit 1355ee27a6

View File

@ -1,4 +1,5 @@
import { ComponentInternalInstance } from './component'
import { devtoolsComponentUpdated } from './devtools'
import { isRenderingCompiledSlot } from './helpers/renderSlot'
import { closeBlock, openBlock } from './vnode'
@ -78,6 +79,11 @@ export function withCtx(
if (!isRenderingCompiledSlot) {
closeBlock()
}
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
devtoolsComponentUpdated(ctx)
}
return res
}
// mark this as a compiled slot function.