ditto-lib / live.ditto / DittoSingleDocumentLiveQueryEvent / oldDocument

oldDocument

val oldDocument: DittoDocument?

The document's previous state.

This will always be nil if isInitial is true. It will also be nil if the document was removed or evicted and isInitial is false.