poteto / ember-api-feature-flags

API based, read-only feature flags for Ember
MIT License
13 stars 2 forks source link

Question. Does this library fetch flags only once? #10

Open xn opened 7 years ago

xn commented 7 years ago

Can fetchFeatures be called more than once?

poteto commented 6 years ago

You should be able to call it multiple times:

this.get('featureFlags')
      .fetchFeatures()
      .then((data) => featureFlags.receiveData(data))
      .catch((reason) => featureFlags.receiveError(reason));