We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29beda7 commit 095fe26Copy full SHA for 095fe26
packages/compiler-core/src/utils.ts
@@ -363,9 +363,6 @@ export function injectProp(
363
context: TransformContext
364
) {
365
let propsWithInjection: ObjectExpression | CallExpression | undefined
366
- const originalProps =
367
- node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
368
-
369
/**
370
* 1. mergeProps(...)
371
* 2. toHandlers(...)
@@ -374,7 +371,7 @@ export function injectProp(
374
*
375
372
* we need to get the real props before normalization
376
373
*/
377
- let props = originalProps
+ let props = node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
378
let callPath: CallExpression[] = []
379
let parentCall: CallExpression | undefined
380
if (
0 commit comments