My experience is that <turbo-frame>
s are really great if you want to make a title editable by clicking on it, or if you just want to load in something expensive a little bit later. However they quickly become hard to work with because they have unexpected consequences of things not loading or loading in the frame when they aren’t supposed to, or making the page look like it’s not doing anything because it doesn’t have the right <turbo-frame>
in the response or not updating the URL properly. Usually it’s far better to just let turbo drive do it’s normal thing if possible.
I actually find that if I ever have to modify more than one thing on a page a <turbo-stream>
(over HTTP) is far better and simpler. Just make sure you provide a way to do a full page load if needed.
Just my experience since using it on my side project.