DEV Community

Discussion on: Being optimistic in UI

Collapse
 
redbar0n profile image
Magne

But then if the ajax request fails, you've lost user data.

Rather than rollbacks, I'd use an automatic retry-policy. Then, if that fails notify the user and let him do a manual retry. Should probably have a 'failed operations inbox' for those kinds of notifications.