RunnableAction

public protocol RunnableAction : Action

A special kind of action that performs internal logic outside of a reducer.

An ActionPlan<_> is a concrete type of RunnbableAction, and is good enough for most cases.

  • When the action is dispatched to a store, this method will be called to handle any logic by the action.

    Declaration

    Swift

    func run<T>(store: Store<T>) -> AnyCancellable?

    Parameters

    store

    The store that the action has been dispatched to.

    Return Value

    An optional cancellable.