Resources Squared
summary
Argues that a new primitive—resources—unifies Ember patterns (helpers, modifiers, services, data fetching) as lifetime-bound resources with collocated setup and cleanup, implemented today via the Ember Resources add-on (works back to Ember 3.28) and intended to reach Starbeam parity. Shows live demos: a clock interval, websocket “most recent visitor” example, and composable remote-data requests; resources reduce boilerplate, avoid request duplication, and the demos run and clean up correctly.
AI-written summary · about
chapters (22)
- 0:00Introduction and speaker intro
- 1:07QR codes and supplemental resources
- 2:30Disclaimers and goals
- 4:13Ember’s reactivity evolution
- 5:59Rethinking reactivity with values
- 7:47What is a resource
- 9:11Resource examples and cleanup
- 11:40Resource lifetimes and ownership
- 13:51Composing resources together
- 14:35Efficient data derivation
- 17:05Resources as values demo
- 19:13Composing interval resources
- 20:39Socket data with resources
- 21:42Data fetching with resources
- 23:26Loading data outside routes
- 24:51Solving request waterfalls
- 25:56Resources as modifiers
- 26:38Resources as services
- 28:01Resources as components
- 29:47Components as refactoring boundaries
- 30:51RFC and future work
- 32:39Summary and next steps
related talks
24mNew to Ember: What ARE All These Things?
25mWhat's the hardest thing TIMING! about async?
01h 07mStarbeam, and what it means for Ember
45mThe Future of Data in Ember
31mDealing with Data in 2019
01h 10mPanel: the future of Ember
22mUsing Ember to Make the Seemingly Impossible Easy
22mUsing Ember to Make the Seemingly Impossible Easy
