Fixing the Sweetalert Modal
... tackled some of the most annoying problems with Turbo, which is
cleaning up the snapshot, let's organize all of the new event code to make room for
more turbo event listeners later. That will put us in a great position to ...
```
An exception has been thrown during the rendering of a template ("The following keys are not valid for the importmap entry "@hotwired/turbo": "url". Valid keys are: "path", "version", "type", "entrypoint", "package_specifier".").
```
The suggested importmap code doesn't work anymore. ...
What is the status on the morphing functionality? I have the latest turbo version but adding the meta tags in the head as per the documentation doesn't seem to do anything ...
Hey |mention:58721|
It's hard to tell what's causing that unexpected behavior from Turbo, the only thing that catches my attention is the Response status code, try with 301, or 302
Cheers! ...
If we use react/angular it updates only part of the page right? full page reload over Ajax will have performance issues when we use Turbo compared to react in bigger applications? ...
Thank you for responding!
I checked the toolbar and the console and could not find an error. I also checked the modal turbo-frame and there was no html inside it. ...
Hey Nexo,
Awesome, I'm glad you figured it out yourself, well done! Yeah, all those Turbo-related topics are something new and it's easy to miss something simple. You just need to get used to it with more practice ;)
Cheers! ...
Do we still need to do the manipulation to make the forms compatible with turbo in symfony 6.4? I have the impression that it works correctly even without changing anything... ...
... I'm not saying it is impossible but basically, you'll have to modify EasyAdmin in a way that it can work with Turbo. That's something I've not done in the past, so I can't say how hard it might.
Hey |mention:39473|
yes, the response just needs to return HTML wrapped in a turbo-frame element with the same ID as the one you want to replace
Cheers! ...
... Hi, I'm using a Live Component with a Live Action that ends with
`return $this->redirectToRoute('my-route');`
Is there a way to load this new page (only the changing part) in a turbo-frame ?
Thanks for your answer
Cyril
thank you very much for the answers, at this point the question comes naturally, why choose stimulus/turbo and not react or vue js? I would like to understand the pros and cons between the two choices. ^_^ ...
Sure, I take this opportunity to ask another question, but is this topic of the turbo and the hotwire very new ? I have had to search around for information or even pre-made templates but without success. Thank you ...
Thanks a lot Ryan for this incredible course. I have a side question: can you tell us which plugins do you use in your Phpstorm? In mine, twig:Button or turbo-stream for example are underlined because unknown for Phpstorm. Thanks! ...
I am trying to use AssetMapper, stimulus and turbo. I have a custom bundle that I use. I am lost as to how to use/register the custom bundles's stimulus controllers to my main project. Could you please advise. ...
Hey @Ole!
No worries :). It IS imported from `app.js` - we did it WAY back on chapter 11 - https://symfonycasts.com/screencast/turbo/organize#codeblock-b154ca5114
Let me know if that helps!
Cheers! ...
... I'm sorry, I did not completly understand, how is the turbo-helper instantiated? Does/should it happen automatically, oder do i have to create it from within app.js manually?
For people using a more recent version of Turbo (in my case 7.2.4) there's no error in the console, but the page redirects to the /cart/_featured page instead. ...
Thank you very much. I will try to implement all your recommendations. It's true that I haven't practiced enough in the Turbo and stimulus technologies yet. It's probably time to put myself on it. ...
Hi David!
The JavaScript ecosystem has indeed grown and matured A LOT during the past 6 or so years. It's quite remarkable! I'm glad you find this useful! I think you will love the stimulus/turbo tutorials as well! ...
590
Turbo
Filter Results