Generic global handling for saving and error


#1

How’re people handling saving state and error state generically? For instance internet disconnect, reconnect, retry generic loading animation for all actions that hit the server

Are you handling it directly with the promise or are you using Ember.$.ajaxComplete, Error etc? Or are you using something else entirely?


#2

This is what I ended up doing in case other people are interested https://github.com/varblob/ember-community-cookbook/blob/master/recipees/global-ajax-service.js