Refreshing Turbo Frames

Episode #492 by Teacher's Avatar David Kimura

Summary

In this episode, we discuss several different approaches to refreshing data within Turbo Frame Tags and pick the approach that will be most universal. We'll also look at some of the downsides of other approaches.
rails turbo view stimulusjs 16:34

Chapters

  • Introduction (0:00)
  • Adding initial dashboard views (1:45)
  • Creating widget endpoints (3:41)
  • Adding refresh functionality (6:00)
  • Creating the Stimulus controller (9:48)
  • Demo on single frame (11:06)
  • Implementing the refresh for the other widgets (11:26)
  • Adding the Refresh All (13:44)
  • Final Thoughts (14:34)
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