( vnode: VNode, rawProps: VNodeProps | null, dirs: DirectiveBinding[], )
| 368 | } |
| 369 | |
| 370 | function applySSRDirectives( |
| 371 | vnode: VNode, |
| 372 | rawProps: VNodeProps | null, |
| 373 | dirs: DirectiveBinding[], |
| 374 | ): VNodeProps { |
| 375 | const toMerge: VNodeProps[] = [] |
| 376 | for (let i = 0; i < dirs.length; i++) { |
| 377 | const binding = dirs[i] |
| 378 | const { |
| 379 | dir: { getSSRProps }, |
| 380 | } = binding |
| 381 | if (getSSRProps) { |
| 382 | const props = getSSRProps(binding, vnode) |
| 383 | if (props) toMerge.push(props) |
| 384 | } |
| 385 | } |
| 386 | return mergeProps(rawProps || {}, ...toMerge) |
| 387 | } |
| 388 | |
| 389 | function renderTeleportVNode( |
| 390 | push: PushFn, |
no test coverage detected