SideEffectDependencyContainer

public protocol SideEffectDependencyContainer : AnyObject

Protocol that the side effect dependencies container should implement

  • Creates a new instance of the container. The container is instantiated when the store is instantiated

    Declaration

    Swift

    init(dispatch: @escaping AnyDispatch, getState: @escaping GetState)

    Parameters

    dispatch

    a closure that can be used to dispatch dispatchables

    getState

    a closure that returns the current state

    Return Value

    an instance of the container