Intervals and Timeouts

Episode #412 by Teacher's Avatar David Kimura

Summary

In this episode, we create two different stimulus controllers for handling refresh intervals and timeouts. Using Turbo, with these stimulus controllers, we are able to create a simple solution refreshes on an interval or timeout.
rails hotwire turbo 11:40

Chapters

  • Introduction (0:00)
  • Generating stimulus controllers (2:00)
  • Creating a Turbo Frame Tag (3:01)
  • Consuming the Stimulus Controller (4:05)
  • Setting up the Interval Stimulus Controller (5:15)
  • Setting up the Timeout Stimulus Controller (8:53)
  • Using the Interval Value (9:54)
  • Final Thoughts (10:49)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams