Using @tracked for Local Component State in Modern Ember Octane
Declare mutable local state with @tracked class fields in Ember Octane, avoid in‑place mutations, and verify updates with ember serve or a rendering test.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Declare mutable local state with @tracked class fields in Ember Octane, avoid in‑place mutations, and verify updates with ember serve or a rendering test.
Keep a Glimmer component's class, template, tests, and styles in one directory to cut navigation and make ownership clear.
Learn when to use native getters, @cached, or @computed for derived state in Ember Octane to optimize rendering performance and ensure UI consistency.
Learn how to replace legacy computed properties and observers with Ember's @tracked system to eliminate dependency arrays and improve application performance.
Stop manually managing dependencies in Ember. Learn how @tracked and autotracking eliminate the need for observers and computed properties to create high-performance, reactive UIs.
Context An Ember 4.x application uses a four-level nested route hierarchy (application → dashboard → settings → profile) where each level renders its own outlet. The team needs consistent keyboard focus behavior after route transitions to satisfy WCAG 2.4.3 Focus Order, but the two documented approaches produce different outcomes in this structure. Constrain