Skip to content

Commit

Permalink
fix(devtools): send update to component owning the slot
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed May 19, 2021
1 parent 4f17be7 commit 1355ee2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/runtime-core/src/componentRenderContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ComponentInternalInstance } from './component'
import { devtoolsComponentUpdated } from './devtools'
import { isRenderingCompiledSlot } from './helpers/renderSlot'
import { closeBlock, openBlock } from './vnode'

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1355ee2

Please sign in to comment.