Is hx-boost
-ing the whole body
a good practice?
#2041
-
Hotwire Turbo intercepts all links in body by default, but the documentation of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I would say both ways are neither "good" or "bad" practices, it's really up to you to pick whatever suits best your application. hx-boost was designed for both usecases so both ways exist and are supported. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Sorry to resurrect an old post here, but I've been struggling with this question as well; and, frankly there's not a lot of good discussion around it on the greater web (most blog posts simply demonstrate that it can be done). After reading Who's Afraid of a Hard Page Reload, it got me thinking about removing If I try to build an app without I don't think this is an unreasonable fear. Even on the driest of internal corporate intranets, it's easy to come up with scenarios where one day Leadership wants to convert to more of a SPA experience (we have a new chat bot we need to persist, the CEO just started a podcast and we want to have the audio-player persist). And, at that moment, if you didn't build your site knowing that So, as much as I love the idea of not using Thanks in advance to anyone who can help me reason this out. |
Beta Was this translation helpful? Give feedback.
I would say both ways are neither "good" or "bad" practices, it's really up to you to pick whatever suits best your application. hx-boost was designed for both usecases so both ways exist and are supported.
Hope this helps!