Choosing Between Turbo Frames and Turbo Streams for Partial Page Updates
Learn when to pick Turbo Frames or Turbo Streams for partial page updates, see a concise comparison table, and view concrete Rails‑style implementation snippets.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn when to pick Turbo Frames or Turbo Streams for partial page updates, see a concise comparison table, and view concrete Rails‑style implementation snippets.
Learn how to use Turbo Frames to isolate page updates and eliminate full-page reloads in server-side rendered applications, maintaining a fluid user experience without complex JS.
The goal is to determine why navigation from a link inside a Turbo Frame results in a full document visit instead of a partial frame replacement. Turbo Drive intercepts the click and expects the server HTML to include a <turbo-frame> element whose id matches the originating frame. If that element is absent or mismatched, Turbo discards the partial resp
Turbo Drive's documented fallback mechanism converts failed Ajax visits into full page loads, but the exact boundary between recoverable and unrecoverable failures remains unclear when requests neither succeed nor explicitly reject. The handbook describes fallback for non-2xx responses and aborted requests, yet the behavior for requests that hang without a r
Module execution state not preserved across Turbo Drive visits Turbo Drive replaces the <body> while keeping the <head> intact during navigation, but <script type="module"> elements in the new page cause their modules to re-evaluate on every visit. This behavior can duplicate initialization side effects — such as event listener registration
I'm designing navigation behavior for a Hotwire Turbo application where some endpoints can occasionally hang for a long time. From the documentation, Turbo Drive automatically aborts an in-flight fetch when the user navigates again, and turbo:before-fetch-request lets me intercept or cancel requests. What I cannot find is any documented, built-in network tim
Goal Allow applications to tune the exponential backoff schedule used when a Turbo Streams connection drops, so that reconnection aggressiveness can match infrastructure constraints such as load-balancer idle timeouts or upstream rate limits. Constraints and uncertainty Turbo 8.x implements a built-in reconnection loop with a starting delay near 500 ms and a
Hotwire apps on Turbo Drive 8.x (with turbo-rails 1.5+) keep a page snapshot cache keyed by URL and scroll position. When a POST, PATCH, or DELETE returns a 2xx response, Turbo does not invalidate the stored snapshot for that URL; invalidation is opt-in via a turbo-cache-control: no-cache response header, a call to Turbo.cache.clear() , or edits inside a tur
Limits of Turbo Frame fallback scroll restoration behavior The goal is to clarify whether Turbo should attempt to restore the previous scroll position when a Turbo Frame request returns HTML that lacks a matching frame element, causing a full‑page fallback. In Turbo 7.x the fallback performs a full‑page navigation that preserves the original request method a