StateObserverDispatchable
public protocol StateObserverDispatchable : Dispatchable
Protocol implemented by a dispatchable that wants to be dispatched in response to a change of the state
-
Creates the dispatchable item. If for any reason, the init decides that the dispatchable should not be sent to the Store, the init can fail (that is, returns nil)
Parameters
prevStatethe last state before current changes
currentStatethe current state
Return Value
either the dispatchable item or nil
View on GitHub
StateObserverDispatchable Protocol Reference