Turbo Frames vs. Turbo Streams

  Рет қаралды 16,156

Mix & Go

Mix & Go

Күн бұрын

And in this video, I'll explain the differences between Turbo Frames and Turbo Streams.
🎥 Join my new Ruby on Rails Class here: bit.ly/3oGJ3wp
Github Repository: github.com/mixandgo/turbo-fra...
Step By Step Guide: bit.ly/3S7uv6v
You can subscribe to the channel using this link: kzbin.info?sub_...
My website: mixandgo.com
#rubyonrails #hotwire #react #reactjs #rails7

Пікірлер: 41
@SebastianSastre
@SebastianSastre 5 ай бұрын
Excellent, knowing this difference was muchly needed and you made it really accessible. Thanks!
@FiendishSchmit
@FiendishSchmit 10 ай бұрын
Amazing! So useful, keep up great content 😊
@bradgarland6424
@bradgarland6424 Жыл бұрын
Thanks, concise and exactly what I needed as I was also a bit confused about which I should be using.
@mixandgo
@mixandgo Жыл бұрын
You're welcome Brad
@Neurodav
@Neurodav 8 ай бұрын
Great video ... helped me a lot conceptually!
@mixandgo
@mixandgo 8 ай бұрын
I'm happy to hear that
@haroldpepete
@haroldpepete Жыл бұрын
that is such a helpful video, i did have so clear with why frames or streams, but i have it clear right now thanks to you
@mixandgo
@mixandgo Жыл бұрын
I'm glad you like it ;)
@marcelonmoraes
@marcelonmoraes Жыл бұрын
Great explanation about turbo frames and turbo streams, one of the best explanations. Thanks to share this content.
@mixandgo
@mixandgo Жыл бұрын
Thank you
@DevBishwasBh
@DevBishwasBh Жыл бұрын
That's a great piece of article, you're awesome. A simple chat app tutorial with devise and broadcasting, with the ability to edit/delete will be a great help. Specially, what I'll be achieving from that tutorial is, a way to access `current_user` within back-end and pass the context/tubro_streams accordingly, [basically not with client-side JS but with backend]
@mixandgo
@mixandgo Жыл бұрын
Thanks man. Not sure what you're after with the current user, but you might want to check the other videos on the Hotwire playlist.
@sidalidev
@sidalidev Жыл бұрын
This made a lot more sense, thank you very much!
@mixandgo
@mixandgo Жыл бұрын
Happy to hear that 👍
@rdepaulabarbosa
@rdepaulabarbosa Жыл бұрын
Great as usual. Thank you!
@mixandgo
@mixandgo Жыл бұрын
Thank you Rafael.
@user-uh6qb4mr5q
@user-uh6qb4mr5q 9 ай бұрын
謝謝你的影片幫助了我很多,thank you
@OscarOliverah
@OscarOliverah Жыл бұрын
Reading Ruby Weekly's and find this! Awesome.
@mixandgo
@mixandgo Жыл бұрын
Thanks Oscar
@ricksmoke4748
@ricksmoke4748 Жыл бұрын
A very good "wrap your brain around it" explanation. Thanks! PS. Can you use an external websocket and turbo-streams to get data into the application also ?
@mixandgo
@mixandgo Жыл бұрын
Haven't tried that yet. So, I'm not sure.
@ledockol
@ledockol Жыл бұрын
Great! Thanks
@midda7
@midda7 Жыл бұрын
Thanks!
@juliolinarezescobar
@juliolinarezescobar Жыл бұрын
Awesome video!
@mixandgo
@mixandgo Жыл бұрын
Glad you liked it
@kevkevships
@kevkevships 9 ай бұрын
Would really enjoy a slightly more comprehensive update. After using turbo frame with stimulus controllers we ran into several issues because the stimulus controllers aren't aware of the page changes. This means for example that stimulus controllers need to be nested within the frames to work properly
@karthikeyanak9460
@karthikeyanak9460 Жыл бұрын
For some reason the Ruby on Rails official documentation is not as good as other web frameworks. Plus books for RoR's are not up to date.
@mixandgo
@mixandgo Жыл бұрын
Yup! That's right. This has been true for as long as I can remember. Especially for new tech. It gets better with time, but in the meantime, you've gotta figure it out yourself. Or subscribe to my channel 😉 😉
@switzerland
@switzerland Жыл бұрын
I think I am cheating. I just wrapped turbo stream tags into my turbo frame response. The turbo frame loads flawlessly, detects the the turbo stream tags which themselves update other pages of the page. Nesting is the way to go. No need to op-in into action-cable🙃 Or you can nest turbo frame tags which results in more requests but also updates in multiple sections.
@mixandgo
@mixandgo Жыл бұрын
That's cool, but you loose the caching benefit. And the lazy-loading one ;)
@ddd2283
@ddd2283 Жыл бұрын
Can someone discover Reflexes ? One short video pls )))
@mixandgo
@mixandgo Жыл бұрын
Sure, who do I make the invoice to? :)
@tillcarlos664
@tillcarlos664 Жыл бұрын
You look very familiar. Are you famous in some other channel? Maybe it was tiktok... ;)
@mixandgo
@mixandgo Жыл бұрын
Nope.
@laughingvampire7555
@laughingvampire7555 3 ай бұрын
I don't understand the point of turbo-frame & turbo-streams, it looks messy compared to how it was done even with jQuery alone. HTMX & Alpine.js look a lot cleaner to me than hotwire.
@mixandgo
@mixandgo 3 ай бұрын
Well the point is you ca improve an existing (non-hotwire) site without doing much work. You don't need to change the old HTML to make the new one more reactive.
@bitwise2832
@bitwise2832 4 ай бұрын
This did not clear up anything...
@talhakhan4457
@talhakhan4457 Жыл бұрын
Cezar, Whenever I run 'Turbo::StreamsChannel.broadcast_update_to("teststr", target: "content", html: "foo") It gives me: [ActionCable] Broadcasting to tester: "foo" => nil
@mixandgo
@mixandgo Жыл бұрын
That should be good. Are you not seeing the result?
@talhakhan4457
@talhakhan4457 Жыл бұрын
@@mixandgo It should give the result as a 0, or 1. Although I figured it out later. It was the redis configuration in the cable.yml
@mixandgo
@mixandgo Жыл бұрын
@@talhakhan4457 well, yes the method just enqueues the job. And the Redis server needs to be started.
Turbo Native in 15 minutes
14:04
Joe Masilotti
Рет қаралды 6 М.
Introduction to Hotwire in Ruby on Rails
10:17
Mix & Go
Рет қаралды 19 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
Мы играли всей семьей
00:27
Даша Боровик
Рет қаралды 5 МЛН
Зу-зу Күлпәш.Курс (6 бөлім)
40:48
ASTANATV Movie
Рет қаралды 506 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 136 М.
Turbo Frame Pages in Ruby on Rails 7
15:47
Deanin
Рет қаралды 7 М.
Is ViewComponent the Future of Rails?
12:25
Mix & Go
Рет қаралды 7 М.
Ruby on Rails Forms With Hotwire
8:48
Mix & Go
Рет қаралды 7 М.
Python Vs. Ruby - Which Is Better?!
5:15
Codemy.com
Рет қаралды 4,3 М.
Hotwire Modals with ZERO JAVASCRIPT
6:39
Rapid Ruby
Рет қаралды 10 М.
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 9 М.
Dynamic forms in Hotwire
7:29
Rapid Ruby
Рет қаралды 6 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН