Reducer
-
Performs an action on a given state and returns a whole new version.
A store is given a single root
See moreReducer
. As it’s sent actions, it runs the reducer to update the application’s state.Declaration
Swift
public protocol Reducer