]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(devtools): send update to component owning the slot
authorGuillaume Chau <guillaume.b.chau@gmail.com>
Wed, 19 May 2021 16:19:28 +0000 (18:19 +0200)
committerGuillaume Chau <guillaume.b.chau@gmail.com>
Wed, 19 May 2021 16:19:28 +0000 (18:19 +0200)
https://github.com/vuejs/vue-devtools/issues/1404

packages/runtime-core/src/componentRenderContext.ts

index 78557484586b34503c05f917d72b8a07178f3054..18dcd6f2f88993018ba734dbe97557ae94057f10 100644 (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.