retryIntents

inline fun <S : MVIState, I : MVIIntent, A : MVIAction> StoreBuilder<S, I, A>.retryIntents(strategy: RetryStrategy = RetryStrategy.Default, name: String? = null, crossinline selector: (intent: I, e: Exception) -> Boolean = { _, _ -> true })

Install a retryIntentsDecorator over this Store.

  • The entire chain of plugins trying to handle a given intent will be retried.

  • This decorator does not handle undelivered intents, for that use StorePlugin.onUndeliveredIntent

See also