PrintInterceptor

public class PrintInterceptor<State> : Interceptor where State : Encodable

A Interceptor to use when debugging. Every Actions and State change are printed to the console.

  • Initializes the PrintInterceptor.

    Declaration

    Swift

    public convenience init()
  • The function called when an Action is dispatched on a Store.

    Declaration

    Swift

    public func actionDispatched(action: Action, oldState: State, newState: State)

    Parameters

    action

    The Action dispatched

    oldState

    The State before the Action was dispatched

    newState

    The State after the Action was dispatched