We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f564e commit 644971eCopy full SHA for 644971e
packages/runtime-core/src/componentSlots.ts
@@ -63,15 +63,15 @@ const normalizeSlot = (
63
rawSlot: Function,
64
ctx: ComponentInternalInstance | null | undefined
65
): Slot => {
66
- const normalized = withCtx((props: any) => {
+ const normalized = withCtx((...args: any[]) => {
67
if (__DEV__ && currentInstance) {
68
warn(
69
`Slot "${key}" invoked outside of the render function: ` +
70
`this will not track dependencies used in the slot. ` +
71
`Invoke the slot function inside the render function instead.`
72
)
73
}
74
- return normalizeSlotValue(rawSlot(props))
+ return normalizeSlotValue(rawSlot(...args))
75
}, ctx) as Slot
76
// NOT a compiled slot
77
;(normalized as ContextualRenderFn)._c = false
0 commit comments