You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The no-assignment-of-untracked-properties-used-in-tracking-contexts rule gives false positive if the tracked property is in the super class but the computed getter is in the sub class #2291
importComponentfrom'@glimmer/component';import{tracked}from'@glimmer/tracking';import{service}from'@ember/service';importtype{RegistryasServiceRegistry}from'@ember/service';exportdefaultclassFooextendsComponent{
@servicedeclarestore: ServiceRegistry['store'];/** I'm in the super class. */
@trackedpage=1;}
The no-assignment-of-untracked-properties-used-in-tracking-contexts rule flags this.page = newPage; as an error because we don't use set. The IDE clearly knows the page field exists, and if you move the getPageInfo getter to the super class lint does not complain.