From: Guillaume Chau Date: Wed, 19 May 2021 16:19:28 +0000 (+0200) Subject: fix(devtools): send update to component owning the slot X-Git-Tag: v3.1.0-beta.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1355ee27a65d466bfe8f3a7ba99aa2213e25bc50;p=thirdparty%2Fvuejs%2Fcore.git fix(devtools): send update to component owning the slot https://github.com/vuejs/vue-devtools/issues/1404 --- diff --git a/packages/runtime-core/src/componentRenderContext.ts b/packages/runtime-core/src/componentRenderContext.ts index 7855748458..18dcd6f2f8 100644 --- a/packages/runtime-core/src/componentRenderContext.ts +++ b/packages/runtime-core/src/componentRenderContext.ts @@ -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.