I have code that checks certain things in the EditCompleted event in a Pro extension. If certain conditions aren't met for certain edits I'd like to cancel the edit operation. Is it appropriate to call
Project.Current.UndoEditAsync();
inside the EditCompleted event?
I'm concerned that the edit that is just completing hasn't been added to the edit stack yet and I might actually undo a previous edit. Testing don't indicate this is a problem but I want to make sure.