mardi 21 février 2017

Globally monitor unfulfilled promises to show indicator

I want to show "loading" indicator if there is any unfulfilled promise. And this should be global, i.e. I don't want to show/hide this indicator manually in every place.

The reason why is that Ember's "loading" route is very limited. It doesn't work with back button and in components. And I want to show this "loading" indicator always if there is a single active promise. Doesn't matter what it's doing, I don't care, just want to show the indicator.

Is there a way to do this? Or is this bad idea?




Aucun commentaire:

Enregistrer un commentaire