ObserverInterceptor

public struct ObserverInterceptor

Interceptor that can be use to observe behaviours and dispatch items as a response.

You can add as many OnserverInterceptor as you want to your application.

  • Creates a new ObserverInterceptor that observes the passed events

    Declaration

    Swift

    public static func observe(_ items: [ObserverType]) -> StoreInterceptor

    Parameters

    items

    the list of events to observe

    Return Value

    the interceptor that observes the given items