A question was deleted just before I posted my answer. In this case, this is a pity because:
- the user might not come back and,
- the comment could have misled him (in my opinion, the answer in the comment was wrong).
This is also very frustrating (I had already written 2 paragraphs, it's a waste of time).
I don't know how undelete works, and maybe another solution is to post the question myself, but this is a "long" process in any case. It would be nice that the deletion of a question is blocked when someone is answering (or writing a comment). Maybe, as a general feature, there could be a signal that shows that someone is writing an answer to a question (this can help to avoid two people writing the same answer at the same time).