Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Route Reload Handling Failures (RSVP.hash for model)

$
0
0

@iaskquestions wrote:

I periodically call .refresh() on my route as I am not using Ember data but instead rely on RSVP.hash.

This allows me pretend that my application is autoreloading and works fine until the backend goes down and a failure occurs.

This causes an exception to be propagated to the frontend and makes the frontend enter an error state.

How do I use the old model before a reload if the reload fails? I have tried using a try/catch on the .refresh() call but this does not appear to make a difference.

Thanks!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles