Rationale: Part of the bitcoin zmq interface documentation regarding topics can be improved to avoid ambiguity, this can save time for other people using this interface.
The main point is that rawTx or hashTx topics notifies about all transactions, both when they are added to mempool or when a block has been disconnected ( as opposed to when a block arrives as in current documentation).
Also, when a block is disconnected only the transactions that were not in the mempool already are notified.
Finally, I've added a clarification about the expected sequence of topics when a chain reorganization occur:
The secuence of topics when a chain reorganisation occur is the following: first arrives all block disconnections, then transactions not already in our mempool from the disconnected blocks are notified, and finally, the new blocks overriding the disconnected ones.