Skip to content

Commit 1355ee2

Browse files
committed
fix(devtools): send update to component owning the slot
vuejs/devtools-v6#1404
1 parent 4f17be7 commit 1355ee2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/runtime-core/src/componentRenderContext.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ComponentInternalInstance } from './component'
2+
import { devtoolsComponentUpdated } from './devtools'
23
import { isRenderingCompiledSlot } from './helpers/renderSlot'
34
import { closeBlock, openBlock } from './vnode'
45

@@ -78,6 +79,11 @@ export function withCtx(
7879
if (!isRenderingCompiledSlot) {
7980
closeBlock()
8081
}
82+
83+
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
84+
devtoolsComponentUpdated(ctx)
85+
}
86+
8187
return res
8288
}
8389
// mark this as a compiled slot function.

0 commit comments

Comments
 (0)