Components
← All components

Optimistic

stimeo--optimistic

Shows the result the moment you press, and undoes exactly what failed.

  • Core
  • Rails / Turbo

On a Turbo form, shows the outcome the moment you press. If the submission succeeds it stays, and the final page belongs to your server's response. If it fails, only what this changed is put back, so an element that was already visible is never hidden as collateral. That a submission is in flight is announced as well. It rides the signals Turbo already emits, so nothing about your requests is replaced and no connection is held open. Blocking double submits and sharing a live count between visitors are separate parts.

running

Both buttons flip to Liked the moment you press them. The first submission succeeds, so the flip stays. The second is rejected on purpose, so you can watch the flip roll back.

Keyboard

This component has no keyboard interactions of its own.