Back to Reswift

Actions

Docs/Actions.md

6.1.1478 B
Original Source

Actions are used to express intended state changes. Actions don't contain functions, instead they provide information about the intended state change, e.g. which user should be deleted.

In your ReSwift app you will define actions for every possible state change that can happen.

Reducers handle these actions and implement state changes based on the information they provide.

All actions in ReSwift conform to the Action protocol, which currently is just a marker protocol.