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
dispatcha closure that can be used to dispatch dispatchables
getStatea closure that returns the current state
Return Value
an instance of the container
View on GitHub
SideEffectDependencyContainer Protocol Reference