Components
← All components

Preview Guard

stimeo--preview-guard

Hides values that go stale while Turbo is briefly showing you a remembered page.

  • Core
  • Rails / Turbo

When you press back, Turbo shows the page it remembered for a moment before the fresh one arrives. In that moment a balance, an unread count or a timestamp is on screen with its old value. This hides such a value for exactly that moment. There are two ways: leave it unset and the value becomes invisible while keeping its space, so nothing shifts; give it wording and that wording takes its place, with your markup restored afterwards. While it is guarded, CSS can tell. Fetching the current value is ordinary rendering's job.

running
Balance
¥123,456
Updated
12:34:56

While Turbo briefly shows a cached snapshot on a back/forward visit, the balance becomes a placeholder and the timestamp is hidden — so no stale value flashes (the button simulates that ~1.5s window).

Keyboard

This component has no keyboard interactions of its own.