Turbo Frames vs. Turbo Streams

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 43

  • @rpf23543
    @rpf23543 28 дней назад

    These tutorials are so great, thanks a lot!

    • @mixandgo
      @mixandgo  28 дней назад

      You are welcome

  • @SebastianSastre
    @SebastianSastre 11 месяцев назад

    Excellent, knowing this difference was muchly needed and you made it really accessible. Thanks!

  • @OscarOliverah
    @OscarOliverah 2 года назад +1

    Reading Ruby Weekly's and find this! Awesome.

  • @bradgarland6424
    @bradgarland6424 2 года назад

    Thanks, concise and exactly what I needed as I was also a bit confused about which I should be using.

    • @mixandgo
      @mixandgo  2 года назад

      You're welcome Brad

  • @marcelonmoraes
    @marcelonmoraes 2 года назад +1

    Great explanation about turbo frames and turbo streams, one of the best explanations. Thanks to share this content.

  • @haroldpepete
    @haroldpepete 2 года назад

    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  2 года назад

      I'm glad you like it ;)

  • @DevBishwasBh
    @DevBishwasBh 2 года назад +1

    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  2 года назад +2

      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 👍

  • @kevkevships
    @kevkevships Год назад

    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

  • @Neurodav
    @Neurodav Год назад

    Great video ... helped me a lot conceptually!

    • @mixandgo
      @mixandgo  Год назад

      I'm happy to hear that

  • @FiendishSchmit
    @FiendishSchmit Год назад

    Amazing! So useful, keep up great content 😊

  • @karthikeyanak9460
    @karthikeyanak9460 2 года назад +7

    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  2 года назад +1

      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 😉 😉

  • @rdepaulabarbosa
    @rdepaulabarbosa 2 года назад

    Great as usual. Thank you!

    • @mixandgo
      @mixandgo  2 года назад

      Thank you Rafael.

  • @ricksmoke4748
    @ricksmoke4748 2 года назад

    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  2 года назад

      Haven't tried that yet. So, I'm not sure.

  • @阿楓-q8d
    @阿楓-q8d Год назад

    謝謝你的影片幫助了我很多,thank you

  • @juliolinarezescobar
    @juliolinarezescobar 2 года назад

    Awesome video!

    • @mixandgo
      @mixandgo  2 года назад

      Glad you liked it

  • @midda7
    @midda7 2 года назад

    Thanks!

  • @ledockol
    @ledockol 2 года назад

    Great! Thanks

  • @switzerland
    @switzerland 2 года назад

    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  2 года назад

      That's cool, but you loose the caching benefit. And the lazy-loading one ;)

  • @ddd2283
    @ddd2283 2 года назад

    Can someone discover Reflexes ? One short video pls )))

    • @mixandgo
      @mixandgo  2 года назад

      Sure, who do I make the invoice to? :)

  • @tillcarlos664
    @tillcarlos664 2 года назад

    You look very familiar. Are you famous in some other channel? Maybe it was tiktok... ;)

  • @laughingvampire7555
    @laughingvampire7555 9 месяцев назад

    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  9 месяцев назад

      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 11 месяцев назад

    This did not clear up anything...

  • @talhakhan4457
    @talhakhan4457 2 года назад

    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  2 года назад

      That should be good. Are you not seeing the result?

    • @talhakhan4457
      @talhakhan4457 2 года назад

      @@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  2 года назад

      @@talhakhan4457 well, yes the method just enqueues the job. And the Redis server needs to be started.