Closed Gbeschbacher closed 1 year ago
I've opened #497. Maybe it was because of this. I will check if it was marked as functional too
I have found a hack to work around this:
const functionalKey = "functional";
// Later, in the component def:
{
[functionalKey]: true,
// Other component bits.
}
Problem Statement: Inlining a functional Component in a SFC and mounting it in a spec breaks the SFC because it is also marked as functional.
Versions in use:
Code to reproduce:
With the following spec file:
This produces the followinig Output:
with my console log printing:
Here you can see the Issue, that my SFC-parent component got marked as functional, even though it should not be and i guess that's the main problem. Setting
Issue.functional = false
in my spec also makes my spec work but this leads me to this package thinking that parsing my SFC with inlined functional component is broken.Do you have any suggestions or hints i can follow to address this error?