When a todo is updated, changes are stored