revert(compiler): preserve inline structured component props
This commit is contained in:
@@ -742,13 +742,6 @@ function renderNestedComponentInvocation(
|
||||
return ` ${attr.name}`;
|
||||
}
|
||||
|
||||
if (/^\s*\{\{[\s\S]*\}\}\s*$/.test(attr.value)) {
|
||||
throw new Error(
|
||||
`WRN-PROP-INLINE-OBJECT: '${attr.name}' uses an inline object or array prop. ` +
|
||||
`Hoist it to state and pass ${attr.name}={yourState} instead.`,
|
||||
);
|
||||
}
|
||||
|
||||
const wholeExpression = wholeAttributeExpression(attr.value);
|
||||
|
||||
const compiledValue = wholeExpression
|
||||
|
||||
Reference in New Issue
Block a user