…`. If you think about it, you don't need the crawler to properly click your turbo frame link and have it load in the frame... because this is a REAL link. So it WILL find the "/news" page and index that as its OWN page…
…for your interest in SymfonyCasts tutorials. Yes, we do plan a tutorial about Turbo... and it might happen this year. About Mercury - I'm not sure, but most probably it might be covered / partially covered in that Turbo tutorial. Though, we don't have specific…
…If I want my app to use turbo (quickly) and I have a huge, ugly jquery document ready function (I don't want to immediately split this out into stimulus controllers), I can just move it into a turbo:load event and be good to…
…can I use the "finally or If I using the Symfony binary as my local web server", It must be already runing"
https://symfonycasts.com/screencast/turbo/mercure-service, min.-3:54 .
I tried to download mercure.exe file and put it in my project…
…i.e. run:
$ symfony serve
But please, read the first TIP on this page: https://symfonycasts.com/screencast/turbo/mercure-service - follow the instructions there to make it work, it's not working out of the box anymore, the note is explaining things well…
He Ryan,
How do you get this to work with easyadmin. I have installed the @symfony/ux-turbo and added it to the easy admin dashboard with the configureAssets like so:
```
public function configureAssets(): Assets
{
return Assets::new()
->addWebpackEncoreEntry('app');
}
```
you can see that it…
…should you need to add a check in the new event listener e.g.
```
document.addEventListener('turbo:before-stream-render', (e) => {
const frame = e.target.getElementsByTagName( 'template' )[0].content.children[0]
if(frame.tagName.toLowerCase() === 'turbo-frame' && frame.hasAttribute('src')) {
frame.innerHTML…
…specific views.
Returning the turbo frame with the src to get this content works well e.g.
```
// _list.stream.html.twig
Loading...
```
However a side effect was that it caused the Browsers Window to scroll up because the Users turbo-frame content momentarily gets replaced…
…at the same time :).
Anyways, back to your problem. I also can't think of a "slick" way to fix this, I don't believe there is any mechanism inside of turbo to allow this. So, you would need to do something tricky. For example…
|
{ |
|
"controllers": { |
|
"@symfony/ux-chartjs": { |
|
"chart": { |
|
"enabled": true, |
|
"fetch": "lazy" |
|
} |
|
}, |
|
"@symfony/ux-turbo": { |
|
"turbo-core": { |
|
"enabled": true, |
|
"fetch": "eager" |
|
} |
|
} |
|
}, |
|
"entrypoints": [] |
|
} |
See Code Block in Script
Hey Ewald V.!
That's... actually a great question! There are two parts to this:
A) In Turbo, they need to know which things we consider as "assets" that should be tracked. So, they make us add this attribute. Maybe they could safely "guess" and…
Hey @Jay Gee!
Yea, I hear you - the weather widget is a GREAT example of that jumping :).
> What if you had a 'load-this-FUTURE-content' trigger (maybe an empty turbo element??) that is for a not-yet-in-view-port element
Can you…
Hello Ryan,
Sorry for my unclear explanations.
It's ok I solved my problem with the rest of the tutorial and the use of turbo frame.
Cheers.
…that this may be a legit issue with Turbo - https://github.com/hotwired/turbo/issues/211
If that's correct, I'm not sure if any reasonable way to workaround it at the moment, other than disabling Turbo for the link or form submit that…
Hey Nick F.!
You're right! That was some sloppiness by me. I added data-turbo-cache="false" to the "flash-container" element. And so, it's removed when cleaning up the page. That's... not really want I want to do, because I rely…
…and there we a bunch of nice little features added after. Not needing to "work around Turbo limitations" is a great thing in general. I'm going to check into this as well and see if we can recommend this solution as a note in…
…You're right! It's new in RC4! https://github.com/hotwired/turbo/releases/tag/v7.0.0-rc.4
So that will allow us to simplify things. I'll investigate and add a note to the video to help people.
Thanks for the pointer!
…With Turbo, they appear to now be possible, but you would likely be rolling them manually :).
Turbo Drive and Swup are, as you said, effectively the same in what they do. The "extra" that Turbo has (that I don't think Swup has) is the…
…!
Haha, that's a good question! Technically speaking (to borrow from your definition)
turbo:before-visit does NOT fire on the initial page load, but fires once and only once *before* each subsequent page is visited.
So, that technical definition makes sense, but your question…
…
That's a pretty fair question :). My choice would be a multi-page app with Twig, but with Turbo and Stimulus immediately so that you can get the "single page app" feel. However, if what you're building is *quite* dynamic (it's more of…
x
682