Closed AllanOricil closed 1 year ago
the userData
prop is declared in the child and exposed using @api, but when running tests, the engine-dom.cjs can't find this public property in the elm
. This is how the child element is used in the parent component.
In this image you can see the moment when the warning appears for the userData
property of the child component.
In the following images you can see that accountData
and recordData
properties are present in the elm
, while the prop called userData
isn't.
In this image you can see that the userData
prop is in vnode.data
.
Why isn't theuserData
prop present in elm
like the other two properties, if all three props are exposed with @api?
A mock was used instead of the actual component. And userData
was missing in the mock...
Description
Why does this warning message appear if the property is in the child element?
@nolanlawson could you help to understand why this issue happens. I know this "warning" happens in the following module, but I can't figure out the problem
child
child.js
parent
parent.js
parent.html
Version
Possible Solution
none
Additional context/Screenshots