Closed tito10047 closed 1 month ago
LiveComponent have no knowledge of their "outerblocks" so it would not work during re-render
Yes, of course. Stupid example copied from docs. I have problem only with this "with attributes.defaults({class:"foo"})" . With this I get parse error
Can you maybe show the code that triggers this error?
Oh i'm sorry i did not pay enough attention..
You cannot pass "attributes" like this, as it is not a mapping/array but a special object, and it is required to be renderered in its template :/
Let's say you want do the same for Twig Components... then you could use with {attributes: attributes.defaults( ...) }
or with attributes.defaults(...).toArray()
Yes, that is what I means. Thanks :)
It would be nice if you could inherit live component from normal component.
Is something like this possible?