Turbo FAQ
Questions I ran into working with Turbo Frames and Turbo Streams.
How can I update multiple turbo_frames in one response?
- DHH: “If you want to replace multiple frames, you can also just target
_top
and replace the whole thing via drive. But otherwise there won’t be a path to custom replace two frames. When you need that, you gotta go to turbo streams.”- But
_top
may be heavy because it reloads everything.
- But
- cryptogopher: “You can nest turbo streams inside turbo frame […]”
- for my use case, I went with this solution
More advice in this issue’s comments.
Can I make a lazy turbo_frame request a turbo_stream from the server?
There are hacks, but it’s not the intended use case.