RecoverUnsyncedChangesHandler constructor

const RecoverUnsyncedChangesHandler({
  1. BeforeResetCallback? onBeforeReset,
  2. AfterResetCallback? onAfterReset,
  3. ClientResetCallback? onManualResetFallback,
})

Creates an instance of RecoverUnsyncedChangesHandler.

This strategy supplies three callbacks: onBeforeReset, onAfterReset and onManualResetFallback. The first two are invoked just before and after the client reset has happened, while the last one is invoked in case an error occurs during the automated process and the system needs to fallback to a manual mode.

Implementation

const RecoverUnsyncedChangesHandler({BeforeResetCallback? onBeforeReset, AfterResetCallback? onAfterReset, ClientResetCallback? onManualResetFallback})
    : super._(ClientResyncModeInternal.recover, onManualResetFallback, onBeforeReset: onBeforeReset, onAfterRecovery: onAfterReset);