* Add restore_state to optimistic switch * no need to schedule update * test added * lint * new async syntax * lint