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
avoid-leaking-state-in-ember-objects this rule is applicable to ember service as well, as service is singleton model, how this create a leak in the variable?
The text was updated successfully, but these errors were encountered:
In our app we have a service named file, we have different routes where when file is set to favorite we will add it to service array favoritedFiles service sample code is below
import Service, { inject as service } from '@ember/service';
I'm not sure if that should be considered an error. You may want to post the question on the Ember Discord, and let us know what you find out. Either way, it's a good idea to move to a native class regardless.
Team,
avoid-leaking-state-in-ember-objects this rule is applicable to ember service as well, as service is singleton model, how this create a leak in the variable?
The text was updated successfully, but these errors were encountered: