Prevent loosing unsaved changes
Optimistic sync