{{should-avoid this.renderModifiers butHow=true}}
summary
Claims that render modifiers are now an anti‑pattern and were only a migration bridge from classic to Glimmer components. Demonstrates three concrete replacements: use custom modifiers to initialize and teardown DOM libraries (avoids extra wrapper elements and groups setup/teardown), use the component Constructor plus registerDestructor to add/remove global event listeners, and replace fetch-on-render with reactive, lazy resources (or task resources) to encapsulate fetching, refetching on argument changes, and avoid eager requests.
AI-written summary · about
chapters (9)
- 0:00Introduction to modifiers
- 1:09Understanding the history
- 2:58Render modifier pitfalls
- 5:52Initializing libraries
- 8:33Building custom modifiers
- 9:43Managing event listeners
- 12:36Data fetching approaches
- 15:35Using Ember resources
- 17:36Summary and future focus
related talks
33mElement Modifiers: Under the Hood
26mBuilding Better Components
01h 03mWorkshop. GlimmerX — declarative UI & derived reactivity in 27kb*. Part 1
01h 00mWorkshop. GlimmerX — declarative UI & derived reactivity in 27kb*. Part 2
33mInteroperable Component Patterns
28mAwesome Ember Tricks
48mInside Glimmer: What Makes Ember's Rendering Engine Tick
35mThe Future Of Templating In Ember
