Retry in Ember-data


#1

I’m trying to handle internet disconnect globally. I’m using ember-data and want to be able to retry failed requests on reconnect. Poking around I found this http://guides.emberjs.com/v1.11.0/models/persisting-records/ but this would require wrapping anything that results in a server interaction in a function and passing it to some sort of retry handler thing. I’m wondering how other people are handling this. Currently I’m thinking to dig into ember data and see if I can find a good place tie in my retry logic.


#2

What if you were to handle this with a custom Adapter that basically wrap the ajax-call functions? Then you would only have to do it once.