onAfterDiscard
Callback invoked once the Client Reset has discarded the unsynced changes because it couldn't recover them. It provides two Realm instances, a frozen one displaying the state before the reset and a regular Realm displaying the current state that can be used to recover objects from the reset.
Parameters
before
frozen TypedRealm realm before the reset.
after
MutableRealm realm after the reset.