Doesn't trigger the computed on page load or update (tested in a controller):
const { computed, get, inject } = Ember;
import { getFeatureFlags } from 'vishnu/sagas/selectors';
export default Ember.Component.extend({
reduxStore: inject.service('saga-store'),
featureFlags: computed('reduxStore.state', function() {
return getFeatureFlags(get(this, 'reduxStore.state'));
}),
isFeatureFlagOn: computed('featureFlags', function() {
console.log('changed!');
return this.get('featureFlags.featureFlag');
}),
});
Doesn't trigger the computed on page load or update (tested in a controller):
const { computed, get, inject } = Ember;
export default Ember.Component.extend({
featureFlags: inject.service(),
isFeatureFlagOn: computed('featureFlags', function() {
console.log('changed!');
return this.get('featureFlags.featureFlag');
}),
});