mercredi 14 septembre 2022

How to track getter change in other getter without computed - Ember js

I need to track the getter is loaded or not in other getter without @computed property. How can I do?

@computed('current.locationId')
get currentApplications() {
  const query = {
    locationID:     get(this, 'current.locationId')
  };
  
  return this.store.pagedArray(this.store.query('shift-application', query));
}

get applicationsLoaded() {
  return this.currentApplications.isFulfilled
}

I need to track currentApplications.isFulfilled without using @computed('currentApplications.isFulfilled').




Aucun commentaire:

Enregistrer un commentaire