Simon André

Results 779 comments of Simon André

There may be a better way, but i tried something and i believe it suits your needs : Twig Component ```php #[AsLiveComponent('Foo')] class Foo extends AbstractController { use DefaultActionTrait; use...

I'd suggest to pass a value. And while it's the same value, it's persisted. That's how i "hacky-coded" my lazyload the other day (that and some shady DOM manipulation 👼...

I believe there is a [couple of examples](https://symfony.com/bundles/ux-live-component/current/index.html#targeting-loading-when-a-specific-model-changes) or references concerning this "dot notation" about child props in the documentation, but there is always room for suggestions / improvments :)...

Quick look for fixes ### ComponentNode ``` $compiler ->write('if (null !== $preRendered) {') ->raw("\n") ->indent() ->write($compiler->getEnvironment()->useYield() ? 'yield $preRendered;' : 'echo $preRendered;') ->raw("\n") ->outdent() ->write('} else {') ->raw("\n") ->indent() ;...

More than 50% are easily solved by using PrintNode // i'll work on it this week-end

Only one failing left for TwigComponent (and it may be solved in Twig) (https://github.com/smnandre/ux/tree/sa/yield-template) We should then fix the code to use Node instead of "echo"

It's been merged on Twig side : https://github.com/twigphp/Twig/pull/3950

@janvdv96 the htmlspecialchars should not be done before rendering imho. Do you have an example where this does not work ? I just tested the [ux.symfony.com toggle-password demo](https://ux.symfony.com/toggle-password) code locally,...

You do want a full application test ? Or an unit -- integration ? Can you share a bit of code ? There are as many ways to use those...

If someone was inclined to create a mini reproducer that could help motivate people to digg into this with you