Replies: 1 comment
-
I have searched for the same idea but then found out there is no real async post render loading supported yet. Played a bit around with a custom stimulus controller but at the end i found an issue within the ux project. In this issue, as future G, there were the Turbo Frames mentioned. After a look to them i found out they are doing exactly what i wanted with just a controller action and a frame within the frontend. I then loaded the content with a Twig (non live) Component in the replacement frame and it worked like a charme. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{title}}
-
Hi,
I’m having trouble with Symfony UX and re-rendering the component PostRender.
What I’d like to do is to load the component with no data and a text “Loading...“, call right-after first render a loadData() function which call an API, and then render the result.
I’ve succeeded doing this with a button:
Twig :
Now I'd like to remove this button.
I've tried with EventSubscriberInterface and PostRender or PostMountEvent and nothing is happening, I still have the loading text even tho loadData() is called...
Any suggestion ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions